[PATCH] D122854: [CSKY] AsmBackend: Make Inst.dump() debug-only

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 31 23:27:25 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG481e2ddef452: [CSKY] AsmBackend: Wrap Inst.dump() in LLVM_DEBUG (authored by kees, committed by MaskRay).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122854/new/

https://reviews.llvm.org/D122854

Files:
  llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.cpp


Index: llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.cpp
===================================================================
--- llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.cpp
+++ llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.cpp
@@ -295,7 +295,7 @@
 
   switch (Inst.getOpcode()) {
   default:
-    Inst.dump();
+    LLVM_DEBUG(Inst.dump());
     llvm_unreachable("Opcode not expected!");
   case CSKY::LRW16:
     Res.setOpcode(CSKY::LRW32);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122854.419630.patch
Type: text/x-patch
Size: 456 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220401/4e0e67fe/attachment.bin>


More information about the llvm-commits mailing list