diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-03-10 17:38:28 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-03-10 17:38:28 +0000 |
commit | 1eec234f91cd74ecd69b5db1c919accb84e61e6a (patch) | |
tree | 2de2898dcdbe68abed4240fc9eb415e19a570d75 /llvm/lib/ExecutionEngine | |
parent | 0f31060c5a531d07822898148bc2e1b2f2e0bddd (diff) | |
download | bcm5719-llvm-1eec234f91cd74ecd69b5db1c919accb84e61e6a.tar.gz bcm5719-llvm-1eec234f91cd74ecd69b5db1c919accb84e61e6a.zip |
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.
llvm-svn: 12269
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/Intercept.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/Intercept.cpp b/llvm/lib/ExecutionEngine/JIT/Intercept.cpp index e4b9cc17677..ce93ab18674 100644 --- a/llvm/lib/ExecutionEngine/JIT/Intercept.cpp +++ b/llvm/lib/ExecutionEngine/JIT/Intercept.cpp @@ -47,16 +47,18 @@ static void runAtExitHandlers() { // 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() {} |