git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186476
91177308-0d34-0410-b5e6-
96231b3b80d8
#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() {
llvm_unreachable("Can't parse shader type!");
}
}
-
-}
namespace llvm {
class AMDGPUMachineFunction : public MachineFunctionInfo {
-private:
- static const char *ShaderTypeAttribute;
public:
AMDGPUMachineFunction(const MachineFunction &MF);
unsigned ShaderType;