[llvm] r290185 - AMDGPU/SI: Make a function const
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 20 09:26:34 PST 2016
Author: tstellar
Date: Tue Dec 20 11:26:34 2016
New Revision: 290185
URL: http://llvm.org/viewvc/llvm-project?rev=290185&view=rev
Log:
AMDGPU/SI: Make a function const
Modified:
llvm/trunk/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
llvm/trunk/lib/Target/AMDGPU/SIMachineFunctionInfo.h
Modified: llvm/trunk/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp?rev=290185&r1=290184&r2=290185&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp Tue Dec 20 11:26:34 2016
@@ -52,7 +52,6 @@ SIMachineFunctionInfo::SIMachineFunction
WavesPerEU(0, 0),
DebuggerWorkGroupIDStackObjectIndices({{0, 0, 0}}),
DebuggerWorkItemIDStackObjectIndices({{0, 0, 0}}),
- ImagePSV(llvm::make_unique<AMDGPUImagePseudoSourceValue>()),
LDSWaveSpillSize(0),
PSInputEna(0),
NumUserSGPRs(0),
Modified: llvm/trunk/lib/Target/AMDGPU/SIMachineFunctionInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIMachineFunctionInfo.h?rev=290185&r1=290184&r2=290185&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIMachineFunctionInfo.h (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIMachineFunctionInfo.h Tue Dec 20 11:26:34 2016
@@ -122,7 +122,7 @@ class SIMachineFunctionInfo final : publ
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;
}
};
More information about the llvm-commits
mailing list