mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
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:
@ -2,10 +2,9 @@
|
|||||||
#include "AMDGPU.h"
|
#include "AMDGPU.h"
|
||||||
#include "llvm/IR/Attributes.h"
|
#include "llvm/IR/Attributes.h"
|
||||||
#include "llvm/IR/Function.h"
|
#include "llvm/IR/Function.h"
|
||||||
|
using namespace llvm;
|
||||||
|
|
||||||
namespace llvm {
|
static const char *const ShaderTypeAttribute = "ShaderType";
|
||||||
|
|
||||||
const char *AMDGPUMachineFunction::ShaderTypeAttribute = "ShaderType";
|
|
||||||
|
|
||||||
AMDGPUMachineFunction::AMDGPUMachineFunction(const MachineFunction &MF) :
|
AMDGPUMachineFunction::AMDGPUMachineFunction(const MachineFunction &MF) :
|
||||||
MachineFunctionInfo() {
|
MachineFunctionInfo() {
|
||||||
@ -21,5 +20,3 @@ AMDGPUMachineFunction::AMDGPUMachineFunction(const MachineFunction &MF) :
|
|||||||
llvm_unreachable("Can't parse shader type!");
|
llvm_unreachable("Can't parse shader type!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
@ -18,8 +18,6 @@
|
|||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
class AMDGPUMachineFunction : public MachineFunctionInfo {
|
class AMDGPUMachineFunction : public MachineFunctionInfo {
|
||||||
private:
|
|
||||||
static const char *ShaderTypeAttribute;
|
|
||||||
public:
|
public:
|
||||||
AMDGPUMachineFunction(const MachineFunction &MF);
|
AMDGPUMachineFunction(const MachineFunction &MF);
|
||||||
unsigned ShaderType;
|
unsigned ShaderType;
|
||||||
|
Reference in New Issue
Block a user