diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-07-19 13:15:21 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-07-19 13:15:21 +0000 |
commit | 18f6ed9c29583283219a0c7e575b0a3d335b84d5 (patch) | |
tree | 32b9983e00b4691b5d0406cbce5aacb8252ab1ab /include | |
parent | 745e864eab681bc24ada2032b31d3b411c123763 (diff) | |
download | external_llvm-18f6ed9c29583283219a0c7e575b0a3d335b84d5.zip external_llvm-18f6ed9c29583283219a0c7e575b0a3d335b84d5.tar.gz external_llvm-18f6ed9c29583283219a0c7e575b0a3d335b84d5.tar.bz2 |
Use generic ELFTargetAsmInfo and DarwinTargetAsmInfo for X86 code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53788 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/DarwinTargetAsmInfo.h | 10 | ||||
-rw-r--r-- | include/llvm/Target/ELFTargetAsmInfo.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/Target/DarwinTargetAsmInfo.h b/include/llvm/Target/DarwinTargetAsmInfo.h index 769273d..afd0dd1 100644 --- a/include/llvm/Target/DarwinTargetAsmInfo.h +++ b/include/llvm/Target/DarwinTargetAsmInfo.h @@ -12,8 +12,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_ELF_TARGET_ASM_INFO_H -#define LLVM_ELF_TARGET_ASM_INFO_H +#ifndef LLVM_DARWIN_TARGET_ASM_INFO_H +#define LLVM_DARWIN_TARGET_ASM_INFO_H #include "llvm/Target/TargetAsmInfo.h" #include "llvm/Target/TargetMachine.h" @@ -22,7 +22,7 @@ namespace llvm { class GlobalValue; class GlobalVariable; - class DarwinTargetAsmInfo: public TargetAsmInfo { + struct DarwinTargetAsmInfo: public virtual TargetAsmInfo { const Section* TextCoalSection; const Section* ConstDataCoalSection; const Section* ConstDataSection; @@ -35,9 +35,9 @@ namespace llvm { const Section* MergeableConstSection(const GlobalVariable *GV) const; const Section* MergeableStringSection(const GlobalVariable *GV) const; protected: - const TargetMachine* ETM; + const TargetMachine* DTM; }; } -#endif // LLVM_ELF_TARGET_ASM_INFO_H +#endif // LLVM_DARWIN_TARGET_ASM_INFO_H diff --git a/include/llvm/Target/ELFTargetAsmInfo.h b/include/llvm/Target/ELFTargetAsmInfo.h index 7afadf0..703d800 100644 --- a/include/llvm/Target/ELFTargetAsmInfo.h +++ b/include/llvm/Target/ELFTargetAsmInfo.h @@ -22,7 +22,7 @@ namespace llvm { class GlobalValue; class GlobalVariable; - class ELFTargetAsmInfo: public TargetAsmInfo { + struct ELFTargetAsmInfo: public virtual TargetAsmInfo { explicit ELFTargetAsmInfo(const TargetMachine &TM); virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const; |