Make constant string pointer into an array to remove a pointer lookup for every access.
authorCraig Topper <craig.topper@gmail.com>
Wed, 17 Jul 2013 03:11:32 +0000 (03:11 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 17 Jul 2013 03:11:32 +0000 (03:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186482 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAllocBase.cpp
lib/CodeGen/RegAllocBase.h

index c0355903574fd53da2fc6ab583fa77a7239aa99a..df3e12aafb56c29934c099da732dd2294f0b4a74 100644 (file)
@@ -43,7 +43,7 @@ static cl::opt<bool, true>
 VerifyRegAlloc("verify-regalloc", cl::location(RegAllocBase::VerifyEnabled),
                cl::desc("Verify during register allocation"));
 
-const char *RegAllocBase::TimerGroupName = "Register Allocation";
+const char RegAllocBase::TimerGroupName[] = "Register Allocation";
 bool RegAllocBase::VerifyEnabled = false;
 
 //===----------------------------------------------------------------------===//
index 064e40f06b7b5a2bc9add40e5c9a081e2005dc3f..ccaabbad44d44b3c05cdc7df86c3875f3fe909c2 100644 (file)
@@ -93,7 +93,7 @@ protected:
                                  SmallVectorImpl<LiveInterval*> &splitLVRs) = 0;
 
   // Use this group name for NamedRegionTimer.
-  static const char *TimerGroupName;
+  static const char TimerGroupName[];
 
 public:
   /// VerifyEnabled - True when -verify-regalloc is given.