X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FTarget%2FELFTargetAsmInfo.h;h=6181e59a0553dced43b27e47ea267492d6c68cea;hb=1902fd9605ab33798408405e840be3d9bdebbd90;hp=593d9b14f87c70a60d7299826bf14adf6980f1ea;hpb=b7679bd0cb45b020f8c6288fdc094808db657e9b;p=oota-llvm.git diff --git a/include/llvm/Target/ELFTargetAsmInfo.h b/include/llvm/Target/ELFTargetAsmInfo.h index 593d9b14f87..6181e59a055 100644 --- a/include/llvm/Target/ELFTargetAsmInfo.h +++ b/include/llvm/Target/ELFTargetAsmInfo.h @@ -16,7 +16,6 @@ #define LLVM_ELF_TARGET_ASM_INFO_H #include "llvm/Target/TargetAsmInfo.h" -#include "llvm/Target/TargetMachine.h" namespace llvm { class GlobalValue; @@ -26,6 +25,7 @@ namespace llvm { struct ELFTargetAsmInfo: public TargetAsmInfo { explicit ELFTargetAsmInfo(const TargetMachine &TM); + SectionKind::Kind SectionKindForGlobal(const GlobalValue *GV) const; virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const; virtual std::string printSectionFlags(unsigned flags) const; const Section* MergeableConstSection(const GlobalVariable *GV) const; @@ -33,8 +33,11 @@ namespace llvm { const Section* MergeableStringSection(const GlobalVariable *GV) const; virtual const Section* SelectSectionForMachineConst(const Type *Ty) const; - protected: - const TargetMachine* ETM; + + const Section* DataRelSection; + const Section* DataRelLocalSection; + const Section* DataRelROSection; + const Section* DataRelROLocalSection; }; }