[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/JIT.cpp

Evan Cheng evan.cheng at apple.com
Fri Jul 21 17:42:15 PDT 2006



Changes in directory llvm/lib/ExecutionEngine/JIT:

JIT.cpp updated: 1.70 -> 1.71
---
Log message:

Forgot to #ifdef __APPLE__

---
Diffs of the changes:  (+2 -0)

 JIT.cpp |    2 ++
 1 files changed, 2 insertions(+)


Index: llvm/lib/ExecutionEngine/JIT/JIT.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.70 llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.71
--- llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.70	Fri Jul 21 18:06:20 2006
+++ llvm/lib/ExecutionEngine/JIT/JIT.cpp	Fri Jul 21 19:42:03 2006
@@ -294,9 +294,11 @@
 
   // If the global is external, just remember the address.
   if (GV->isExternal()) {
+#ifdef __APPLE__
     // __dso_handle is resolved by the Mac OS X dynamic linker.
     if (GV->getName() == "__dso_handle")
       return (void*)&__dso_handle;
+#endif
     Ptr = sys::DynamicLibrary::SearchForAddressOfSymbol(GV->getName().c_str());
     if (Ptr == 0) {
       std::cerr << "Could not resolve external global address: "






More information about the llvm-commits mailing list