summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2017-04-17 18:02:09 +0000
committerKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2017-04-17 18:02:09 +0000
commit12096848fd7923afcd24cfe6b04116c610f99c02 (patch)
treec2d17d73954d6405b21d52b059cf882ec233433a /llvm/lib
parent18c18deb7711808df26b950341363bb2b091f03e (diff)
downloadbcm5719-llvm-12096848fd7923afcd24cfe6b04116c610f99c02.tar.gz
bcm5719-llvm-12096848fd7923afcd24cfe6b04116c610f99c02.zip
AMDGPU: Set CodePointerSize to 8 for amdgcn
llvm-svn: 300470
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp b/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp
index 1655591abf3..6c61fb1f2d6 100644
--- a/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp
@@ -14,6 +14,7 @@
using namespace llvm;
AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(const Triple &TT) : MCAsmInfoELF() {
+ CodePointerSize = (TT.getArch() == Triple::amdgcn) ? 8 : 4;
HasSingleParameterDotFile = false;
//===------------------------------------------------------------------===//
MinInstAlignment = 4;
OpenPOWER on IntegriCloud