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

Evan Cheng evan.cheng at apple.com
Fri Sep 1 00:10:12 PDT 2006



Changes in directory llvm/lib/ExecutionEngine/JIT:

JIT.cpp updated: 1.74 -> 1.75
---
Log message:

Better comments.

---
Diffs of the changes:  (+4 -1)

 JIT.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)


Index: llvm/lib/ExecutionEngine/JIT/JIT.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.74 llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.75
--- llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.74	Fri Sep  1 02:00:46 2006
+++ llvm/lib/ExecutionEngine/JIT/JIT.cpp	Fri Sep  1 02:09:56 2006
@@ -312,7 +312,10 @@
 #ifdef __APPLE__
 #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_4 && \
     __APPLE_CC__ >= 5330
-    // __dso_handle is resolved by the Mac OS X dynamic linker.
+    // Apple gcc defaults to -fuse-cxa-atexit (i.e. calls __cxa_atexit instead
+    // of atexit). It passes the address of linker generated symbol __dso_handle
+    // to the function.
+    // This configuration change happened at version 5330.
     if (GV->getName() == "__dso_handle")
       return (void*)&__dso_handle;
 #endif






More information about the llvm-commits mailing list