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 | d0f3c5e8b1cef2e4661de72eb62001a3f478d212 (patch) | |
tree | b6fa860d3af111e938eba0eb2e6629baa9ce6578 /lib/ExecutionEngine/JIT/Intercept.cpp | |
parent | f313ea7da4ddc083de89d1df1fe49ec6a06948e0 (diff) | |
download | external_llvm-d0f3c5e8b1cef2e4661de72eb62001a3f478d212.zip external_llvm-d0f3c5e8b1cef2e4661de72eb62001a3f478d212.tar.gz external_llvm-d0f3c5e8b1cef2e4661de72eb62001a3f478d212.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12269 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT/Intercept.cpp')
-rw-r--r-- | lib/ExecutionEngine/JIT/Intercept.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/JIT/Intercept.cpp b/lib/ExecutionEngine/JIT/Intercept.cpp index e4b9cc1..ce93ab1 100644 --- a/lib/ExecutionEngine/JIT/Intercept.cpp +++ b/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() {} |