diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-08-01 22:48:40 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-08-01 22:48:40 +0000 |
| commit | 61990958d8fa49245b42ca8752a70dd88f7e4845 (patch) | |
| tree | f715e3ed727b549f58b4049b5bbff62869baf1b9 /llvm/lib/CodeGen/AsmPrinter | |
| parent | b2bbb61f33983d82483b19f6c0481da90d38ed7a (diff) | |
| download | bcm5719-llvm-61990958d8fa49245b42ca8752a70dd88f7e4845.tar.gz bcm5719-llvm-61990958d8fa49245b42ca8752a70dd88f7e4845.zip | |
loweringinfo is always non-null.
llvm-svn: 77821
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 5168c45668f..7c9fcf5fd60 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -426,7 +426,7 @@ void AsmPrinter::EmitJumpTableInfo(MachineJumpTableInfo *MJTI, getObjFileLowering().SectionForGlobal(F, Mang, TM); bool JTInDiffSection = false; - if ((IsPic && !(LoweringInfo && LoweringInfo->usesGlobalOffsetTable())) || + if ((IsPic && !LoweringInfo->usesGlobalOffsetTable()) || !JumpTableDataSection || F->isWeakForLinker()) { // 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. |

