summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCTargetDesc.h
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2016-06-14 20:29:59 +0000
committerTom Stellard <thomas.stellard@amd.com>2016-06-14 20:29:59 +0000
commitbf3e6e5bb40c43b9826e33ea5b3376f7da20e4cf (patch)
tree82d2d51f177b28a60973ceb3e0345fffe1d1a2bd /llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCTargetDesc.h
parent392638d7b156511882f419b0ea7d6b7757b7093a (diff)
downloadbcm5719-llvm-bf3e6e5bb40c43b9826e33ea5b3376f7da20e4cf.tar.gz
bcm5719-llvm-bf3e6e5bb40c43b9826e33ea5b3376f7da20e4cf.zip
AMDGPU/SI: Refactor fixup handling for constant addrspace variables
Summary: We now use a standard fixup type applying the pc-relative address of constant address space variables, and we have the GlobalAddress lowering code add the required 4 byte offset to the global address rather than doing it as part of the fixup. This refactoring will make it easier to use the same code for global address space variables and also simplifies the code. Re-commit this after fixing a bug where we were trying to use a reference to a Triple object that had already been destroyed. Reviewers: arsenm, kzhuravl Subscribers: arsenm, kzhuravl, llvm-commits Differential Revision: http://reviews.llvm.org/D21154 llvm-svn: 272705
Diffstat (limited to 'llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCTargetDesc.h')
-rw-r--r--llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCTargetDesc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCTargetDesc.h b/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCTargetDesc.h
index 5f76860133c..9ab7940812b 100644
--- a/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCTargetDesc.h
+++ b/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCTargetDesc.h
@@ -47,6 +47,7 @@ MCAsmBackend *createAMDGPUAsmBackend(const Target &T, const MCRegisterInfo &MRI,
const Triple &TT, StringRef CPU);
MCObjectWriter *createAMDGPUELFObjectWriter(bool Is64Bit,
+ bool HasRelocationAddend,
raw_pwrite_stream &OS);
} // End llvm namespace
OpenPOWER on IntegriCloud