From: Chris Lattner Date: Mon, 25 Apr 2011 22:14:33 +0000 (+0000) Subject: mark a large static table static. Pointed out by Michael Ilseman! X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=607b8ebfb849e3257d5ab64fae3ae62229eadb6f;p=oota-llvm.git 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 --- diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index 00d1d787324..a5ec73d851d 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"