Move string pointer from being a static class member to just a static global in the one file its needed in.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186476 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper 2013-07-17 00:31:35 +00:00
parent c8cfaa1625
commit f5eea52983
2 changed files with 2 additions and 7 deletions

View 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!");
}
}
}

View File

@ -18,8 +18,6 @@
namespace llvm {
class AMDGPUMachineFunction : public MachineFunctionInfo {
private:
static const char *ShaderTypeAttribute;
public:
AMDGPUMachineFunction(const MachineFunction &MF);
unsigned ShaderType;