diff options
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Target/DarwinTargetAsmInfo.h | 3 | ||||
-rw-r--r-- | include/llvm/Target/ELFTargetAsmInfo.h | 3 | ||||
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 9 |
3 files changed, 10 insertions, 5 deletions
diff --git a/include/llvm/Target/DarwinTargetAsmInfo.h b/include/llvm/Target/DarwinTargetAsmInfo.h index 0ed9b38..3403f06 100644 --- a/include/llvm/Target/DarwinTargetAsmInfo.h +++ b/include/llvm/Target/DarwinTargetAsmInfo.h @@ -30,7 +30,8 @@ namespace llvm { const Section* DataCoalSection; explicit DarwinTargetAsmInfo(const TargetMachine &TM); - virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const; + virtual const Section* SelectSectionForGlobal(const GlobalValue *GV, + bool NoCoalesce = false) const; virtual std::string UniqueSectionForGlobal(const GlobalValue* GV, SectionKind::Kind kind) const; const Section* MergeableConstSection(const GlobalVariable *GV) const; diff --git a/include/llvm/Target/ELFTargetAsmInfo.h b/include/llvm/Target/ELFTargetAsmInfo.h index fe339f8..b8261ef 100644 --- a/include/llvm/Target/ELFTargetAsmInfo.h +++ b/include/llvm/Target/ELFTargetAsmInfo.h @@ -26,7 +26,8 @@ namespace llvm { struct ELFTargetAsmInfo: public virtual TargetAsmInfo { explicit ELFTargetAsmInfo(const TargetMachine &TM); - virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const; + virtual const Section* SelectSectionForGlobal(const GlobalValue *GV, + bool NoCoalesce = false) const; virtual std::string PrintSectionFlags(unsigned flags) const; const Section* MergeableConstSection(const GlobalVariable *GV) const; inline const Section* MergeableConstSection(const Type *Ty) const; diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index 04e91cb..2fd1492 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -544,8 +544,10 @@ namespace llvm { const char* name = NULL) const; /// SectionForGlobal - This hooks returns proper section name for given - /// global with all necessary flags and marks. - virtual std::string SectionForGlobal(const GlobalValue *GV) const; + /// global with all necessary flags and marks. If NoCoalesce is true, + /// do not use coalesced section. + virtual std::string SectionForGlobal(const GlobalValue *GV, + bool NoCoalesce = false) const; // Helper methods for SectionForGlobal virtual std::string UniqueSectionForGlobal(const GlobalValue* GV, @@ -553,7 +555,8 @@ namespace llvm { virtual std::string PrintSectionFlags(unsigned flags) const { return ""; } - virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const; + virtual const Section* SelectSectionForGlobal(const GlobalValue *GV, + bool NoCoalesce = false) const; virtual const Section* SelectSectionForMachineConst(const Type *Ty) const; |