mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 23:18:51 +00:00
loweringinfo is always non-null.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77821 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b80610cd13
commit
2f03f65205
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user