Move string pointer from being a static class member to just a static global in the...
authorCraig Topper <craig.topper@gmail.com>
Wed, 17 Jul 2013 00:31:35 +0000 (00:31 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 17 Jul 2013 00:31:35 +0000 (00:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186476 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/R600/AMDGPUMachineFunction.cpp
lib/Target/R600/AMDGPUMachineFunction.h

index 9a1e3447e7e5d3a11c6d96822424364c1a277f86..f2342b0e8854ba11ea8cbc300b594047c47b7c6e 100644 (file)
@@ -2,10 +2,9 @@
 #include "AMDGPU.h"
 #include "llvm/IR/Attributes.h"
 #include "llvm/IR/Function.h"
+using namespace llvm;
 
-namespace llvm {
-
-const char *AMDGPUMachineFunction::ShaderTypeAttribute = "ShaderType";
+static const char *const ShaderTypeAttribute = "ShaderType";
 
 AMDGPUMachineFunction::AMDGPUMachineFunction(const MachineFunction &MF) :
     MachineFunctionInfo() {
@@ -21,5 +20,3 @@ AMDGPUMachineFunction::AMDGPUMachineFunction(const MachineFunction &MF) :
       llvm_unreachable("Can't parse shader type!");
   }
 }
-
-}
index 5d5df1249b447d08db577191bbc8fac0e8f2a10d..789b96a8fa052ab8c1463df588847d4ee3dd60f5 100644 (file)
@@ -18,8 +18,6 @@
 namespace llvm {
 
 class AMDGPUMachineFunction : public MachineFunctionInfo {
-private:
-  static const char *ShaderTypeAttribute;
 public:
   AMDGPUMachineFunction(const MachineFunction &MF);
   unsigned ShaderType;