summaryrefslogtreecommitdiff
path: root/lib/Support/CrashRecoveryContext.cpp
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2012-04-21 14:45:37 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2012-04-21 14:45:37 +0000
commite0af267bc2ee95108b6a0e2128b70421ed68f999 (patch)
treed5ab72ecfd94059c3ab53e096ead05c51c4e2a3c /lib/Support/CrashRecoveryContext.cpp
parentd1ad82f869aadeba51b366486be63e20023f32f0 (diff)
downloadllvm-e0af267bc2ee95108b6a0e2128b70421ed68f999.tar.gz
llvm-e0af267bc2ee95108b6a0e2128b70421ed68f999.tar.bz2
llvm-e0af267bc2ee95108b6a0e2128b70421ed68f999.tar.xz
move Signals to .rodata
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155283 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/CrashRecoveryContext.cpp')
-rw-r--r--lib/Support/CrashRecoveryContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/CrashRecoveryContext.cpp b/lib/Support/CrashRecoveryContext.cpp
index e2af0bc176..e175056279 100644
--- a/lib/Support/CrashRecoveryContext.cpp
+++ b/lib/Support/CrashRecoveryContext.cpp
@@ -223,7 +223,7 @@ void CrashRecoveryContext::Disable() {
#include <signal.h>
-static int Signals[] = { SIGABRT, SIGBUS, SIGFPE, SIGILL, SIGSEGV, SIGTRAP };
+static const int Signals[] = { SIGABRT, SIGBUS, SIGFPE, SIGILL, SIGSEGV, SIGTRAP };
static const unsigned NumSignals = sizeof(Signals) / sizeof(Signals[0]);
static struct sigaction PrevActions[NumSignals];