summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/indirectbr.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-03-07 06:08:31 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-03-07 06:08:31 +0000
commitb1f25f1b93fd9cf3dbe4168a73d9485780b1fb47 (patch)
tree4cfa442051bc59428d1377a6ae1bde5f3db72041 /llvm/test/CodeGen/ARM/indirectbr.ll
parentc994c6a35bed00a5a98ff9b6fd55dc60cc3c062d (diff)
downloadbcm5719-llvm-b1f25f1b93fd9cf3dbe4168a73d9485780b1fb47.tar.gz
bcm5719-llvm-b1f25f1b93fd9cf3dbe4168a73d9485780b1fb47.zip
Replace PROLOG_LABEL with a new CFI_INSTRUCTION.
The old system was fairly convoluted: * A temporary label was created. * A single PROLOG_LABEL was created with it. * A few MCCFIInstructions were created with the same label. The semantics were that the cfi instructions were mapped to the PROLOG_LABEL via the temporary label. The output position was that of the PROLOG_LABEL. The temporary label itself was used only for doing the mapping. The new CFI_INSTRUCTION has a 1:1 mapping to MCCFIInstructions and points to one by holding an index into the CFI instructions of this function. I did consider removing MMI.getFrameInstructions completelly and having CFI_INSTRUCTION own a MCCFIInstruction, but MCCFIInstructions have non trivial constructors and destructors and are somewhat big, so the this setup is probably better. The net result is that we don't create temporary labels that are never used. llvm-svn: 203204
Diffstat (limited to 'llvm/test/CodeGen/ARM/indirectbr.ll')
-rw-r--r--llvm/test/CodeGen/ARM/indirectbr.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/ARM/indirectbr.ll b/llvm/test/CodeGen/ARM/indirectbr.ll
index 9a6f417ba3a..7c49cb310f3 100644
--- a/llvm/test/CodeGen/ARM/indirectbr.ll
+++ b/llvm/test/CodeGen/ARM/indirectbr.ll
@@ -69,7 +69,7 @@ L1: ; preds = %L2, %bb2
store i8* blockaddress(@foo, %L5), i8** @nextaddr, align 4
ret i32 %res.3
}
-; ARM: .long Ltmp1-(LPC{{.*}}+8)
-; THUMB: .long Ltmp1-(LPC{{.*}}+4)
+; ARM: .long Ltmp0-(LPC{{.*}}+8)
+; THUMB: .long Ltmp0-(LPC{{.*}}+4)
; THUMB: .long _nextaddr-([[NEXTADDR_PCBASE]]+4)
-; THUMB2: .long Ltmp1
+; THUMB2: .long Ltmp0
OpenPOWER on IntegriCloud