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

Brian Gaeke gaeke at cs.uiuc.edu
Wed Mar 10 11:39:15 PST 2004


Changes in directory llvm/lib/ExecutionEngine/JIT:

Intercept.cpp updated: 1.14 -> 1.15

---
Log message:

My fix for PR274 broke the build on Darwin/PPC.  As I'm fairly certain this
bug only affects Linux systems that use GLIBC, I'm going to put ifdefs around
the array.


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

Index: llvm/lib/ExecutionEngine/JIT/Intercept.cpp
diff -u llvm/lib/ExecutionEngine/JIT/Intercept.cpp:1.14 llvm/lib/ExecutionEngine/JIT/Intercept.cpp:1.15
--- llvm/lib/ExecutionEngine/JIT/Intercept.cpp:1.14	Mon Mar  8 23:22:10 2004
+++ llvm/lib/ExecutionEngine/JIT/Intercept.cpp	Wed Mar 10 11:38:28 2004
@@ -47,16 +47,18 @@
 // not inlined, and hiding their real definitions in a separate archive file
 // that the dynamic linker can't see. For more info, search for
 // 'libc_nonshared.a' on Google, or read http://llvm.cs.uiuc.edu/PR274.
+#if defined(__linux__)
 void *FunctionPointers[] = {
   (void *) stat,
-  (void *) stat64,
   (void *) fstat,
-  (void *) fstat64,
   (void *) lstat,
+  (void *) stat64,
+  (void *) fstat64,
   (void *) lstat64,
   (void *) atexit,
   (void *) mknod
 };
+#endif // __linux__
 
 // NoopFn - Used if we have nothing else to call...
 static void NoopFn() {}





More information about the llvm-commits mailing list