[llvm] r332753 - AMDGPU/NFC: Set symbol's type that is coming from an argument in
Konstantin Zhuravlyov via llvm-commits
llvm-commits at lists.llvm.org
Fri May 18 11:41:37 PDT 2018
Author: kzhuravl
Date: Fri May 18 11:41:37 2018
New Revision: 332753
URL: http://llvm.org/viewvc/llvm-project?rev=332753&view=rev
Log:
AMDGPU/NFC: Set symbol's type that is coming from an argument in
EmitAMDGPUSymbolType, instead of hard-coding it to STT_AMDGPU_HSA_KERNEL.
Modified:
llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp?rev=332753&r1=332752&r2=332753&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp Fri May 18 11:41:37 2018
@@ -298,7 +298,7 @@ void AMDGPUTargetELFStreamer::EmitAMDGPU
unsigned Type) {
MCSymbolELF *Symbol = cast<MCSymbolELF>(
getStreamer().getContext().getOrCreateSymbol(SymbolName));
- Symbol->setType(ELF::STT_AMDGPU_HSA_KERNEL);
+ Symbol->setType(Type);
}
bool AMDGPUTargetELFStreamer::EmitISAVersion(StringRef IsaVersionString) {
More information about the llvm-commits
mailing list