mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
AMDGPU: Use MCRegister for preloaded arguments
Attempt to fix build error with ancient GCC
This commit is contained in:
parent
5a1c9a0071
commit
f08273f200
@ -27,7 +27,7 @@ private:
|
||||
friend class AMDGPUArgumentUsageInfo;
|
||||
|
||||
union {
|
||||
Register Reg;
|
||||
MCRegister Reg;
|
||||
unsigned StackOffset;
|
||||
};
|
||||
|
||||
@ -69,7 +69,7 @@ public:
|
||||
return !IsStack;
|
||||
}
|
||||
|
||||
Register getRegister() const {
|
||||
MCRegister getRegister() const {
|
||||
assert(!IsStack);
|
||||
return Reg;
|
||||
}
|
||||
|
@ -684,9 +684,9 @@ public:
|
||||
return ArgInfo.getPreloadedValue(Value);
|
||||
}
|
||||
|
||||
Register getPreloadedReg(AMDGPUFunctionArgInfo::PreloadedValue Value) const {
|
||||
MCRegister getPreloadedReg(AMDGPUFunctionArgInfo::PreloadedValue Value) const {
|
||||
auto Arg = std::get<0>(ArgInfo.getPreloadedValue(Value));
|
||||
return Arg ? Arg->getRegister() : Register();
|
||||
return Arg ? Arg->getRegister() : MCRegister();
|
||||
}
|
||||
|
||||
unsigned getGITPtrHigh() const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user