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,
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;