summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMJITInfo.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2008-10-21 16:54:12 +0000
committerJim Grosbach <grosbach@apple.com>2008-10-21 16:54:12 +0000
commitcfebc18d7ca6f7e5b974fe2f2b8f8354a0ba8c63 (patch)
tree5075b239ab8ee72038f2136454fc7996d3f9eb36 /llvm/lib/Target/ARM/ARMJITInfo.cpp
parent209ad9dc707a6640c091bd7452a2cdac9f6748bc (diff)
downloadbcm5719-llvm-cfebc18d7ca6f7e5b974fe2f2b8f8354a0ba8c63.tar.gz
bcm5719-llvm-cfebc18d7ca6f7e5b974fe2f2b8f8354a0ba8c63.zip
use pre-UAL mnemonics for push/pop for compilaton callback function
llvm-svn: 57911
Diffstat (limited to 'llvm/lib/Target/ARM/ARMJITInfo.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMJITInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMJITInfo.cpp b/llvm/lib/Target/ARM/ARMJITInfo.cpp
index 39cde991415..c2db9cda8f9 100644
--- a/llvm/lib/Target/ARM/ARMJITInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMJITInfo.cpp
@@ -56,7 +56,7 @@ extern "C" {
// for the real target function right now. We have to act as if this
// whole compilation callback doesn't exist as far as the caller is
// concerned, so we can't just preserve the callee saved regs.
- "push {r0, r1, r2, r3, lr}\n"
+ "stmdb sp!, {r0, r1, r2, r3, lr}\n"
// The LR contains the address of the stub function on entry.
// pass it as the argument to the C part of the callback
"mov r0, lr\n"
@@ -87,7 +87,7 @@ extern "C" {
// The above twiddling of the saved return addresses allows us to
// deallocate everything, including the LR the stub saved, all in one
// pop instruction.
- "pop {r0, r1, r2, r3, lr, pc}\n"
+ "ldmia sp!, {r0, r1, r2, r3, lr, pc}\n"
);
#else // Not an ARM host
void ARMCompilationCallback() {
OpenPOWER on IntegriCloud