[llvm] 086280f - [AMDGPU] Fix linking error of SIISelLowering.cpp.o (NFC)
Jie Fu via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 20 21:08:23 PST 2024
Author: Jie Fu
Date: 2024-02-21T13:07:34+08:00
New Revision: 086280f4d1c085c8e02cd3986bf87529ec7162c5
URL: https://github.com/llvm/llvm-project/commit/086280f4d1c085c8e02cd3986bf87529ec7162c5
DIFF: https://github.com/llvm/llvm-project/commit/086280f4d1c085c8e02cd3986bf87529ec7162c5.diff
LOG: [AMDGPU] Fix linking error of SIISelLowering.cpp.o (NFC)
ld.lld: error: undefined symbol: llvm::MachineOperand::dump() const
>>> referenced by SIISelLowering.cpp
Added:
Modified:
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
index 126c1bd3e991f9..4697751a4874f0 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -5157,8 +5157,10 @@ MachineBasicBlock *SITargetLowering::EmitInstrWithCustomInserter(
// iff there was no token on the call.
if (MachineInstr *Def = MRI.getVRegDef(MO.getReg())) {
if (Def->getOpcode() != TargetOpcode::IMPLICIT_DEF) {
- Def->dump();
- MO.dump();
+ LLVM_DEBUG({
+ Def->dump();
+ MO.dump();
+ });
MO.setImplicit();
MIB.add(MO);
}
More information about the llvm-commits
mailing list