aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-07 06:20:51 +0000
committerChris Lattner <sabre@nondot.org>2006-01-07 06:20:51 +0000
commit2199877563ddf4ddb8defb760b33eb4478449a54 (patch)
treefd99a7b244f3a6ab0a48acac8c5235adb0affc7d /lib/ExecutionEngine
parent51e6a38b868b33fb5c3dcb3d502239affe762c80 (diff)
downloadexternal_llvm-2199877563ddf4ddb8defb760b33eb4478449a54.zip
external_llvm-2199877563ddf4ddb8defb760b33eb4478449a54.tar.gz
external_llvm-2199877563ddf4ddb8defb760b33eb4478449a54.tar.bz2
Wrap long lines.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25140 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r--lib/ExecutionEngine/JIT/JITEmitter.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp
index d127708..477a0e0 100644
--- a/lib/ExecutionEngine/JIT/JITEmitter.cpp
+++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp
@@ -105,8 +105,8 @@ JITMemoryManager::JITMemoryManager(bool useGOT) {
}
JITMemoryManager::~JITMemoryManager() {
- for (std::list<sys::MemoryBlock>::iterator ib = Blocks.begin(), ie = Blocks.end();
- ib != ie; ++ib)
+ for (std::list<sys::MemoryBlock>::iterator ib = Blocks.begin(),
+ ie = Blocks.end(); ib != ie; ++ib)
sys::Memory::ReleaseRWX(*ib);
Blocks.clear();
}
@@ -352,14 +352,15 @@ void *JITResolver::JITCompilerFn(void *Stub) {
// a little bit after the stub. As such, use upper_bound to find it.
std::map<void*, Function*>::iterator I =
JR.state.getStubToFunctionMap(locked).upper_bound(Stub);
- assert(I != JR.state.getStubToFunctionMap(locked).begin() && "This is not a known stub!");
+ assert(I != JR.state.getStubToFunctionMap(locked).begin() &&
+ "This is not a known stub!");
Function *F = (--I)->second;
// We might like to remove the stub from the StubToFunction map.
// We can't do that! Multiple threads could be stuck, waiting to acquire the
// lock above. As soon as the 1st function finishes compiling the function,
- // the next one will be released, and needs to be able to find the function it needs
- // to call.
+ // the next one will be released, and needs to be able to find the function it
+ // needs to call.
//JR.state.getStubToFunctionMap(locked).erase(I);
DEBUG(std::cerr << "JIT: Lazily resolving function '" << F->getName()
@@ -534,7 +535,8 @@ void JITEmitter::finishFunction(MachineFunction &F) {
MR.setGOTIndex(idx);
if (((void**)MemMgr.getGOTBase())[idx] != ResultPtr) {
DEBUG(std::cerr << "GOT was out of date for " << ResultPtr
- << " pointing at " << ((void**)MemMgr.getGOTBase())[idx] << "\n");
+ << " pointing at " << ((void**)MemMgr.getGOTBase())[idx]
+ << "\n");
((void**)MemMgr.getGOTBase())[idx] = ResultPtr;
}
}