[PATCH] D21153: AMDGPU/SI: Don't use fixup_si_rodata for scratch rsrc relocations
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 8 13:53:46 PDT 2016
arsenm accepted this revision.
arsenm added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: lib/Target/AMDGPU/MCTargetDesc/SIMCCodeEmitter.cpp:253-257
@@ -253,1 +252,7 @@
+ const MCSymbol &Sym = Expr->getSymbol();
+ MCFixupKind Kind;
+ if (Sym.isExternal())
+ Kind = FK_Data_4;
+ else
+ Kind = (MCFixupKind)AMDGPU::fixup_si_rodata;
Fixups.push_back(MCFixup::create(4, Expr, Kind, MI.getLoc()));
----------------
ternary operator
http://reviews.llvm.org/D21153
More information about the llvm-commits
mailing list