1 //=====-- PPCTargetAsmInfo.h - PPC asm properties -------------*- C++ -*--====//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the declaration of the DarwinTargetAsmInfo class.
12 //===----------------------------------------------------------------------===//
14 #ifndef PPCTARGETASMINFO_H
15 #define PPCTARGETASMINFO_H
17 #include "llvm/Target/TargetAsmInfo.h"
18 #include "llvm/Target/DarwinTargetAsmInfo.h"
19 #include "llvm/Target/ELFTargetAsmInfo.h"
23 // Forward declaration.
24 class PPCTargetMachine;
26 struct PPCTargetAsmInfo : public virtual TargetAsmInfo {
27 explicit PPCTargetAsmInfo(const PPCTargetMachine &TM);
30 struct PPCDarwinTargetAsmInfo : public PPCTargetAsmInfo,
31 public DarwinTargetAsmInfo {
32 explicit PPCDarwinTargetAsmInfo(const PPCTargetMachine &TM);
33 virtual unsigned PreferredEHDataFormat(DwarfEncoding::Target Reason,
37 struct PPCLinuxTargetAsmInfo : public PPCTargetAsmInfo,
38 public ELFTargetAsmInfo {
39 explicit PPCLinuxTargetAsmInfo(const PPCTargetMachine &TM);
40 virtual unsigned PreferredEHDataFormat(DwarfEncoding::Target Reason,