aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-29 05:09:30 +0000
committerChris Lattner <sabre@nondot.org>2009-07-29 05:09:30 +0000
commite53a600f065075731d0aeb9dc8f4f3d75f5a05f8 (patch)
tree6fbf6ce95f4290e15a716defabb2928effc3739a /include
parent636bef1f35eb7ca4c605d57aa6b8fbe9ff8207a8 (diff)
downloadexternal_llvm-e53a600f065075731d0aeb9dc8f4f3d75f5a05f8.zip
external_llvm-e53a600f065075731d0aeb9dc8f4f3d75f5a05f8.tar.gz
external_llvm-e53a600f065075731d0aeb9dc8f4f3d75f5a05f8.tar.bz2
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetLoweringObjectFile.h23
1 files changed, 12 insertions, 11 deletions
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<char> &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