diff options
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; |