From: Chris Lattner Date: Sat, 1 Aug 2009 22:48:40 +0000 (+0000) Subject: loweringinfo is always non-null. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2f03f652057ff880034069c087258635bb7dd3c2;p=oota-llvm.git loweringinfo is always non-null. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77821 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 5168c45668f..7c9fcf5fd60 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/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.