diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-03 20:10:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-03 20:10:23 +0000 |
commit | 9e30964187536b8965248ab7b2d0f39b064981bd (patch) | |
tree | 1b6f535172e0fc1f5a42e367770304388b202c29 /lib/ExecutionEngine | |
parent | 7b93f1c8b11223c353d17445719383d857f270f8 (diff) | |
download | external_llvm-9e30964187536b8965248ab7b2d0f39b064981bd.zip external_llvm-9e30964187536b8965248ab7b2d0f39b064981bd.tar.gz external_llvm-9e30964187536b8965248ab7b2d0f39b064981bd.tar.bz2 |
don't #include a header into the middle of an anon namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65967 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/JIT/JIT.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/ExecutionEngine/JIT/JIT.cpp b/lib/ExecutionEngine/JIT/JIT.cpp index a611e82..3fd5be7 100644 --- a/lib/ExecutionEngine/JIT/JIT.cpp +++ b/lib/ExecutionEngine/JIT/JIT.cpp @@ -21,12 +21,12 @@ #include "llvm/ModuleProvider.h" #include "llvm/CodeGen/MachineCodeEmitter.h" #include "llvm/ExecutionEngine/GenericValue.h" -#include "llvm/Support/MutexGuard.h" -#include "llvm/System/DynamicLibrary.h" #include "llvm/Target/TargetData.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Target/TargetJITInfo.h" - +#include "llvm/Support/Dwarf.h" +#include "llvm/Support/MutexGuard.h" +#include "llvm/System/DynamicLibrary.h" #include "llvm/Config/config.h" using namespace llvm; @@ -141,16 +141,14 @@ struct LibgccObjectInfo { unsigned unused[2]; }; -// for DW_EH_PE_omit -#include "llvm/Support/Dwarf.h" - /// darwin_register_frame - Since __register_frame does not work with darwin's /// libgcc,we provide our own function, which "tricks" libgcc by modifying the /// "Dwarf2 object list" key. void DarwinRegisterFrame(void* FrameBegin) { // Get the key. - struct LibgccObjectInfo* LOI = (struct LibgccObjectInfo*) + LibgccObjectInfo* LOI = (struct LibgccObjectInfo*) _keymgr_get_and_lock_processwide_ptr(KEYMGR_GCC3_DW2_OBJ_LIST); + assert(LOI && "This should be preallocated by the runtime"); // Allocate a new LibgccObject to represent this frame. Deallocation of this // object may be impossible: since darwin code in libgcc was written after |