diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-08-22 06:07:19 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-08-22 06:07:19 +0000 |
commit | 96601ca332ab388754ca4673be8973396fea2ddd (patch) | |
tree | cbcd5cd376fac9adff0f9683e79512d652c0159d /lib/ExecutionEngine | |
parent | df8de92083e9cc97999e9f2f7bc7ef1df9ac6258 (diff) | |
download | external_llvm-96601ca332ab388754ca4673be8973396fea2ddd.zip external_llvm-96601ca332ab388754ca4673be8973396fea2ddd.tar.gz external_llvm-96601ca332ab388754ca4673be8973396fea2ddd.tar.bz2 |
Add a getName function to MachineFunction. Use it in places that previously did getFunction()->getName(). Remove includes of Function.h that are no longer needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162347 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/JIT/JITEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp index ff3a9dc..3bf6db8 100644 --- a/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -780,7 +780,7 @@ static unsigned GetConstantPoolSizeInBytes(MachineConstantPool *MCP, void JITEmitter::startFunction(MachineFunction &F) { DEBUG(dbgs() << "JIT: Starting CodeGen of Function " - << F.getFunction()->getName() << "\n"); + << F.getName() << "\n"); uintptr_t ActualSize = 0; // Set the memory writable, if it's not already @@ -929,7 +929,7 @@ bool JITEmitter::finishFunction(MachineFunction &F) { PrevDL = DebugLoc(); DEBUG(dbgs() << "JIT: Finished CodeGen of [" << (void*)FnStart - << "] Function: " << F.getFunction()->getName() + << "] Function: " << F.getName() << ": " << (FnEnd-FnStart) << " bytes of text, " << Relocations.size() << " relocations\n"); |