diff options
author | Lang Hames <lhames@gmail.com> | 2018-09-28 01:41:33 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2018-09-28 01:41:33 +0000 |
commit | 4328ea3443fe79b72a5ca6ac17c2952b528a1433 (patch) | |
tree | 75145d128473ba647a0ed58ab4ddf0e6bafa09db /llvm/lib/ExecutionEngine/Orc/ThreadSafeModule.cpp | |
parent | f7d151069f108cfcb90e0b86b2dd98ce88a0871c (diff) | |
download | bcm5719-llvm-4328ea3443fe79b72a5ca6ac17c2952b528a1433.tar.gz bcm5719-llvm-4328ea3443fe79b72a5ca6ac17c2952b528a1433.zip |
[ORC] clang-format the ThreadSafeModule code.
Evidently I forgot to do this before committing r343055.
llvm-svn: 343288
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/ThreadSafeModule.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Orc/ThreadSafeModule.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/ThreadSafeModule.cpp b/llvm/lib/ExecutionEngine/Orc/ThreadSafeModule.cpp index c5a38aec102..cf091743f9d 100644 --- a/llvm/lib/ExecutionEngine/Orc/ThreadSafeModule.cpp +++ b/llvm/lib/ExecutionEngine/Orc/ThreadSafeModule.cpp @@ -1,4 +1,5 @@ -//===-- ThreadSafeModule.cpp - Thread safe Module, Context, and Utilities h-===// +//===-- ThreadSafeModule.cpp - Thread safe Module, Context, and Utilities +//h-===// // // The LLVM Compiler Infrastructure // @@ -21,7 +22,7 @@ ThreadSafeModule cloneToNewContext(ThreadSafeModule &TSM, assert(TSM && "Can not clone null module"); if (!ShouldCloneDef) - ShouldCloneDef = [](const GlobalValue&) { return true; }; + ShouldCloneDef = [](const GlobalValue &) { return true; }; auto Lock = TSM.getContextLock(); @@ -30,8 +31,7 @@ ThreadSafeModule cloneToNewContext(ThreadSafeModule &TSM, { std::vector<GlobalValue *> ClonedDefsInSrc; ValueToValueMapTy VMap; - auto Tmp = CloneModule(*TSM.getModule(), VMap, - [&](const GlobalValue *GV) { + auto Tmp = CloneModule(*TSM.getModule(), VMap, [&](const GlobalValue *GV) { if (ShouldCloneDef(*GV)) { ClonedDefsInSrc.push_back(const_cast<GlobalValue *>(GV)); return true; |