diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-11-08 08:02:53 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-11-08 08:02:53 +0000 |
commit | ce4a70bd7608861e104b04265a0c71e5df8ecefe (patch) | |
tree | 5baf5280b91d06827536a7d8a11640a6aedc39f3 /lib/Target/PowerPC/PPCJITInfo.cpp | |
parent | 3cc8223a3c062daee763d6db272415a76de38a78 (diff) | |
download | llvm-ce4a70bd7608861e104b04265a0c71e5df8ecefe.tar.gz llvm-ce4a70bd7608861e104b04265a0c71e5df8ecefe.tar.bz2 llvm-ce4a70bd7608861e104b04265a0c71e5df8ecefe.tar.xz |
Rename startFunctionStub to startGVStub since it's also used for GV non-lazy ptr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58897 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCJITInfo.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCJITInfo.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/PowerPC/PPCJITInfo.cpp b/lib/Target/PowerPC/PPCJITInfo.cpp index 89c6d4924f..b5de31868d 100644 --- a/lib/Target/PowerPC/PPCJITInfo.cpp +++ b/lib/Target/PowerPC/PPCJITInfo.cpp @@ -335,7 +335,7 @@ void *PPCJITInfo::emitFunctionStub(const Function* F, void *Fn, // call. The code is the same except for one bit of the last instruction. if (Fn != (void*)(intptr_t)PPC32CompilationCallback && Fn != (void*)(intptr_t)PPC64CompilationCallback) { - MCE.startFunctionStub(F, 7*4); + MCE.startGVStub(F, 7*4); intptr_t Addr = (intptr_t)MCE.getCurrentPCValue(); MCE.emitWordBE(0); MCE.emitWordBE(0); @@ -346,10 +346,10 @@ void *PPCJITInfo::emitFunctionStub(const Function* F, void *Fn, MCE.emitWordBE(0); EmitBranchToAt(Addr, (intptr_t)Fn, false, is64Bit); sys::Memory::InvalidateInstructionCache((void*)Addr, 7*4); - return MCE.finishFunctionStub(F); + return MCE.finishGVStub(F); } - MCE.startFunctionStub(F, 10*4); + MCE.startGVStub(F, 10*4); intptr_t Addr = (intptr_t)MCE.getCurrentPCValue(); if (is64Bit) { MCE.emitWordBE(0xf821ffb1); // stdu r1,-80(r1) @@ -374,7 +374,7 @@ void *PPCJITInfo::emitFunctionStub(const Function* F, void *Fn, MCE.emitWordBE(0); EmitBranchToAt(BranchAddr, (intptr_t)Fn, true, is64Bit); sys::Memory::InvalidateInstructionCache((void*)Addr, 10*4); - return MCE.finishFunctionStub(F); + return MCE.finishGVStub(F); } |