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 | b31a7175275d254335df994c1cc370af93c65551 (patch) | |
| tree | 95808736b7fd3a84828c6e717e9647215a127d77 /llvm/lib/ExecutionEngine/JIT | |
| parent | 98161f5f3455110c3c4830ee26ccb49d859be7f0 (diff) | |
| download | bcm5719-llvm-b31a7175275d254335df994c1cc370af93c65551.tar.gz bcm5719-llvm-b31a7175275d254335df994c1cc370af93c65551.zip | |
Rename startFunctionStub to startGVStub since it's also used for GV non-lazy ptr.
llvm-svn: 58897
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT')
| -rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp index 9062cee84ee..7edeba29873 100644 --- a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -517,9 +517,9 @@ namespace { void initJumpTableInfo(MachineJumpTableInfo *MJTI); void emitJumpTableInfo(MachineJumpTableInfo *MJTI); - virtual void startFunctionStub(const GlobalValue* F, unsigned StubSize, + virtual void startGVStub(const GlobalValue* GV, unsigned StubSize, unsigned Alignment = 1); - virtual void* finishFunctionStub(const GlobalValue *F); + virtual void* finishGVStub(const GlobalValue *GV); /// allocateSpace - Reserves space in the current block if any, or /// allocate a new one of the given size. @@ -1121,17 +1121,17 @@ void JITEmitter::emitJumpTableInfo(MachineJumpTableInfo *MJTI) { } } -void JITEmitter::startFunctionStub(const GlobalValue* F, unsigned StubSize, - unsigned Alignment) { +void JITEmitter::startGVStub(const GlobalValue* GV, unsigned StubSize, + unsigned Alignment) { SavedBufferBegin = BufferBegin; SavedBufferEnd = BufferEnd; SavedCurBufferPtr = CurBufferPtr; - BufferBegin = CurBufferPtr = MemMgr->allocateStub(F, StubSize, Alignment); + BufferBegin = CurBufferPtr = MemMgr->allocateStub(GV, StubSize, Alignment); BufferEnd = BufferBegin+StubSize+1; } -void *JITEmitter::finishFunctionStub(const GlobalValue* F) { +void *JITEmitter::finishGVStub(const GlobalValue* GV) { NumBytes += getCurrentPCOffset(); // Invalidate the icache if necessary. |

