[llvm-commits] [llvm] r130160 - /llvm/trunk/lib/VMCore/Function.cpp
Chris Lattner
sabre at nondot.org
Mon Apr 25 15:14:33 PDT 2011
Author: lattner
Date: Mon Apr 25 17:14:33 2011
New Revision: 130160
URL: http://llvm.org/viewvc/llvm-project?rev=130160&view=rev
Log:
mark a large static table static. Pointed out by Michael Ilseman!
Modified:
llvm/trunk/lib/VMCore/Function.cpp
Modified: llvm/trunk/lib/VMCore/Function.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Function.cpp?rev=130160&r1=130159&r2=130160&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Function.cpp (original)
+++ llvm/trunk/lib/VMCore/Function.cpp Mon Apr 25 17:14:33 2011
@@ -328,7 +328,7 @@
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"
More information about the llvm-commits
mailing list