1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 20:43:44 +02:00

AMDGPU/SI: Make a function const

llvm-svn: 290185
This commit is contained in:
Tom Stellard 2016-12-20 17:26:34 +00:00
parent 2c0dd4ec69
commit 5634d231ec
2 changed files with 3 additions and 4 deletions

View File

@ -52,7 +52,6 @@ SIMachineFunctionInfo::SIMachineFunctionInfo(const MachineFunction &MF)
WavesPerEU(0, 0),
DebuggerWorkGroupIDStackObjectIndices({{0, 0, 0}}),
DebuggerWorkItemIDStackObjectIndices({{0, 0, 0}}),
ImagePSV(llvm::make_unique<AMDGPUImagePseudoSourceValue>()),
LDSWaveSpillSize(0),
PSInputEna(0),
NumUserSGPRs(0),

View File

@ -122,7 +122,7 @@ class SIMachineFunctionInfo final : public AMDGPUMachineFunction {
std::array<int, 3> DebuggerWorkItemIDStackObjectIndices;
AMDGPUBufferPseudoSourceValue BufferPSV;
std::unique_ptr<AMDGPUImagePseudoSourceValue> ImagePSV;
AMDGPUImagePseudoSourceValue ImagePSV;
public:
// FIXME: Make private
@ -490,8 +490,8 @@ public:
return &BufferPSV;
}
AMDGPUImagePseudoSourceValue *getImagePSV() {
return ImagePSV.get();
const AMDGPUImagePseudoSourceValue *getImagePSV() const {
return &ImagePSV;
}
};