aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/XCore/XCoreAsmPrinter.cpp
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 /lib/Target/XCore/XCoreAsmPrinter.cpp
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 'lib/Target/XCore/XCoreAsmPrinter.cpp')
-rw-r--r--lib/Target/XCore/XCoreAsmPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/XCore/XCoreAsmPrinter.cpp b/lib/Target/XCore/XCoreAsmPrinter.cpp
index d57151c..dc31212 100644
--- a/lib/Target/XCore/XCoreAsmPrinter.cpp
+++ b/lib/Target/XCore/XCoreAsmPrinter.cpp
@@ -134,7 +134,7 @@ void XCoreAsmPrinter::PrintGlobalVariable(const GlobalVariable *GV) {
const TargetData *TD = TM.getTargetData();
- SwitchToSection(getObjFileLowering().SectionForGlobal(GV, TM));
+ SwitchToSection(getObjFileLowering().SectionForGlobal(GV, Mang, TM));
std::string name = Mang->getMangledName(GV);
Constant *C = GV->getInitializer();
@@ -205,7 +205,7 @@ void XCoreAsmPrinter::emitFunctionStart(MachineFunction &MF) {
// Print out the label for the function.
const Function *F = MF.getFunction();
- SwitchToSection(getObjFileLowering().SectionForGlobal(F, TM));
+ SwitchToSection(getObjFileLowering().SectionForGlobal(F, Mang, TM));
// Mark the start of the function
O << "\t.cc_top " << CurrentFnName << ".function," << CurrentFnName << "\n";