diff options
author | Dan Gohman <gohman@apple.com> | 2008-03-21 23:44:21 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-03-21 23:44:21 +0000 |
commit | 026eed69e7ff8dce5557a0c95b67dad2ca68180d (patch) | |
tree | 8f669dc715d8cad70a2daf2f4563698dafaf8768 /llvm/lib/System/Unix/Signals.inc | |
parent | 5a6ac79738406a4902908cd53735b84f8cddfa2f (diff) | |
download | bcm5719-llvm-026eed69e7ff8dce5557a0c95b67dad2ca68180d.tar.gz bcm5719-llvm-026eed69e7ff8dce5557a0c95b67dad2ca68180d.zip |
Avoid calling array_endof in a static initializer, as it incurs
dynamic initialization.
llvm-svn: 48666
Diffstat (limited to 'llvm/lib/System/Unix/Signals.inc')
-rw-r--r-- | llvm/lib/System/Unix/Signals.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/System/Unix/Signals.inc b/llvm/lib/System/Unix/Signals.inc index ff84639f307..f7149b12a36 100644 --- a/llvm/lib/System/Unix/Signals.inc +++ b/llvm/lib/System/Unix/Signals.inc @@ -41,7 +41,7 @@ std::vector<sys::Path> *DirectoriesToRemove = 0; const int IntSigs[] = { SIGHUP, SIGINT, SIGQUIT, SIGPIPE, SIGTERM, SIGUSR1, SIGUSR2 }; -const int *IntSigsEnd = array_endof(IntSigs); +const int *IntSigsEnd = IntSigs + sizeof(IntSigs) / sizeof(IntSigs[0]); // KillSigs - Signals that are synchronous with the program that will cause it // to die. @@ -51,7 +51,7 @@ const int KillSigs[] = { , SIGEMT #endif }; -const int *KillSigsEnd = array_endof(KillSigs); +const int *KillSigsEnd = KillSigs + sizeof(KillSigs) / sizeof(KillSigs[0]); #ifdef HAVE_BACKTRACE void* StackTrace[256]; |