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:
parent
2c0dd4ec69
commit
5634d231ec
@ -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),
|
||||
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user