diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-07-24 16:40:09 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-07-24 16:40:09 +0000 |
| commit | 71b6d6946c706b8c3f847a03746dccfc2046b052 (patch) | |
| tree | 9e55d03b6c2906969e171397aa53515d66ad06ef | |
| parent | e1d5ca583f6a4c614802f6d40ef5930fff7a459b (diff) | |
| download | bcm5719-llvm-71b6d6946c706b8c3f847a03746dccfc2046b052.tar.gz bcm5719-llvm-71b6d6946c706b8c3f847a03746dccfc2046b052.zip | |
remove a use of SectionFlagsForGlobal.
llvm-svn: 76970
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 44d163617e9..887c417a8a1 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -382,16 +382,17 @@ void AsmPrinter::EmitJumpTableInfo(MachineJumpTableInfo *MJTI, const char* JumpTableDataSection = TAI->getJumpTableDataSection(); const Function *F = MF.getFunction(); - unsigned SectionFlags = TAI->SectionFlagsForGlobal(F); + const Section *FuncSection = TAI->SectionForGlobal(F); + bool JTInDiffSection = false; if ((IsPic && !(LoweringInfo && LoweringInfo->usesGlobalOffsetTable())) || !JumpTableDataSection || - SectionFlags & SectionFlags::Linkonce) { + FuncSection->hasFlag(SectionFlags::Linkonce)) { // In PIC mode, we need to emit the jump table to the same section as the // function body itself, otherwise the label differences won't make sense. // We should also do if the section name is NULL or function is declared in // discardable section. - SwitchToSection(TAI->SectionForGlobal(F)); + SwitchToSection(FuncSection); } else { SwitchToDataSection(JumpTableDataSection); JTInDiffSection = true; |

