aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/Function.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-04-25 22:14:33 +0000
committerChris Lattner <sabre@nondot.org>2011-04-25 22:14:33 +0000
commit607b8ebfb849e3257d5ab64fae3ae62229eadb6f (patch)
treef06db3366a60fdd1c262d9b95265ffd9e420ff98 /lib/VMCore/Function.cpp
parent6311a55b9dae82977c892ef9bda7c39f781ea564 (diff)
downloadexternal_llvm-607b8ebfb849e3257d5ab64fae3ae62229eadb6f.zip
external_llvm-607b8ebfb849e3257d5ab64fae3ae62229eadb6f.tar.gz
external_llvm-607b8ebfb849e3257d5ab64fae3ae62229eadb6f.tar.bz2
mark a large static table static. Pointed out by Michael Ilseman!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130160 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r--lib/VMCore/Function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp
index 00d1d78..a5ec73d 100644
--- a/lib/VMCore/Function.cpp
+++ b/lib/VMCore/Function.cpp
@@ -328,7 +328,7 @@ unsigned Function::getIntrinsicID() const {
std::string Intrinsic::getName(ID id, const Type **Tys, unsigned numTys) {
assert(id < num_intrinsics && "Invalid intrinsic ID!");
- const char * const Table[] = {
+ static const char * const Table[] = {
"not_intrinsic",
#define GET_INTRINSIC_NAME_TABLE
#include "llvm/Intrinsics.gen"