diff options
Diffstat (limited to 'include/llvm/Target/TargetAsmInfo.h')
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 9 |
1 files changed, 6 insertions, 3 deletions
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; |