From e53a600f065075731d0aeb9dc8f4f3d75f5a05f8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 29 Jul 2009 05:09:30 +0000 Subject: pass the mangler down into the various SectionForGlobal methods. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77432 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetLoweringObjectFile.h | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'include') diff --git a/include/llvm/Target/TargetLoweringObjectFile.h b/include/llvm/Target/TargetLoweringObjectFile.h index 03bc5a0..433a4f9 100644 --- a/include/llvm/Target/TargetLoweringObjectFile.h +++ b/include/llvm/Target/TargetLoweringObjectFile.h @@ -88,6 +88,7 @@ public: /// the specified global variable or function definition. This should not /// be passed external (or available externally) globals. const Section *SectionForGlobal(const GlobalValue *GV, + Mangler *Mang, const TargetMachine &TM) const; /// getSpecialCasedSectionGlobals - Allow the target to completely override @@ -95,7 +96,7 @@ public: /// FIXME: ELIMINATE this by making PIC16 implement ADDRESS with /// getFlagsForNamedSection. virtual const Section * - getSpecialCasedSectionGlobals(const GlobalValue *GV, + getSpecialCasedSectionGlobals(const GlobalValue *GV, Mangler *Mang, SectionKind Kind) const { return 0; } @@ -108,9 +109,9 @@ public: } protected: - virtual const Section *SelectSectionForGlobal(const GlobalValue *GV, - SectionKind Kind, - const TargetMachine &TM) const; + virtual const Section * + SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, + Mangler *Mang, const TargetMachine &TM) const; }; @@ -136,9 +137,9 @@ public: void getSectionFlagsAsString(SectionKind Kind, SmallVectorImpl &Str) const; - virtual const Section* SelectSectionForGlobal(const GlobalValue *GV, - SectionKind Kind, - const TargetMachine &TM) const; + virtual const Section * + SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, + Mangler *Mang, const TargetMachine &TM) const; protected: const Section *DataRelSection; const Section *DataRelLocalSection; @@ -161,9 +162,9 @@ class TargetLoweringObjectFileMachO : public TargetLoweringObjectFile { const Section *SixteenByteConstantSection; public: TargetLoweringObjectFileMachO(const TargetMachine &TM); - virtual const Section *SelectSectionForGlobal(const GlobalValue *GV, - SectionKind Kind, - const TargetMachine &TM) const; + virtual const Section * + SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, + Mangler *Mang, const TargetMachine &TM) const; virtual const Section * getSectionForMergeableConstant(SectionKind Kind) const; @@ -179,7 +180,7 @@ public: virtual const Section * SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, - const TargetMachine &TM) const; + Mangler *Mang, const TargetMachine &TM) const; }; } // end namespace llvm -- cgit v1.1