diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-29 05:09:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-29 05:09:30 +0000 |
commit | e53a600f065075731d0aeb9dc8f4f3d75f5a05f8 (patch) | |
tree | 6fbf6ce95f4290e15a716defabb2928effc3739a /lib/CodeGen | |
parent | 636bef1f35eb7ca4c605d57aa6b8fbe9ff8207a8 (diff) | |
download | external_llvm-e53a600f065075731d0aeb9dc8f4f3d75f5a05f8.tar.gz external_llvm-e53a600f065075731d0aeb9dc8f4f3d75f5a05f8.tar.bz2 external_llvm-e53a600f065075731d0aeb9dc8f4f3d75f5a05f8.zip |
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/CodeGen')
-rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 5 | ||||
-rw-r--r-- | lib/CodeGen/ELFWriter.cpp | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index c9b500df08..441f8057c8 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -412,10 +412,11 @@ void AsmPrinter::EmitJumpTableInfo(MachineJumpTableInfo *MJTI, // the appropriate section. TargetLowering *LoweringInfo = TM.getTargetLowering(); - const char* JumpTableDataSection = TAI->getJumpTableDataSection(); + const char *JumpTableDataSection = TAI->getJumpTableDataSection(); const Function *F = MF.getFunction(); - const Section *FuncSection = getObjFileLowering().SectionForGlobal(F, TM); + const Section *FuncSection = + getObjFileLowering().SectionForGlobal(F, Mang, TM); bool JTInDiffSection = false; if ((IsPic && !(LoweringInfo && LoweringInfo->usesGlobalOffsetTable())) || diff --git a/lib/CodeGen/ELFWriter.cpp b/lib/CodeGen/ELFWriter.cpp index 5587b52023..bf2d0bd94c 100644 --- a/lib/CodeGen/ELFWriter.cpp +++ b/lib/CodeGen/ELFWriter.cpp @@ -326,7 +326,7 @@ void ELFWriter::EmitGlobal(const GlobalValue *GV) { TM.getTargetLowering()->getObjFileLowering(); // Get the ELF section where this global belongs from TLOF - const Section *S = TLOF.SectionForGlobal(GV, TM); + const Section *S = TLOF.SectionForGlobal(GV, Mang, TM); unsigned SectionFlags = getElfSectionFlags(S->getKind()); // The symbol align should update the section alignment if needed |