[llvm] r252551 - MachineVerifier: Add missing linebreak
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 9 15:59:30 PST 2015
Author: matze
Date: Mon Nov 9 17:59:29 2015
New Revision: 252551
URL: http://llvm.org/viewvc/llvm-project?rev=252551&view=rev
Log:
MachineVerifier: Add missing linebreak
MachineInstr::print() with SkipOppers==true does not produce a
linebreak, so we have to do that in MachineVerifier::report().
Modified:
llvm/trunk/lib/CodeGen/MachineVerifier.cpp
llvm/trunk/test/CodeGen/MIR/X86/machine-verifier.mir
Modified: llvm/trunk/lib/CodeGen/MachineVerifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineVerifier.cpp?rev=252551&r1=252550&r2=252551&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineVerifier.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineVerifier.cpp Mon Nov 9 17:59:29 2015
@@ -425,6 +425,7 @@ void MachineVerifier::report(const char
if (Indexes && Indexes->hasIndex(MI))
errs() << Indexes->getInstructionIndex(MI) << '\t';
MI->print(errs(), /*SkipOpers=*/true);
+ errs() << '\n';
}
void MachineVerifier::report(const char *msg,
Modified: llvm/trunk/test/CodeGen/MIR/X86/machine-verifier.mir
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/MIR/X86/machine-verifier.mir?rev=252551&r1=252550&r2=252551&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/MIR/X86/machine-verifier.mir (original)
+++ llvm/trunk/test/CodeGen/MIR/X86/machine-verifier.mir Mon Nov 9 17:59:29 2015
@@ -15,7 +15,8 @@ body: |
bb.0.entry:
liveins: %edi
; CHECK: *** Bad machine code: Too few operands ***
- ; CHECK: instruction: COPY2 operands expected, but 0 given.
+ ; CHECK: instruction: COPY
+ ; CHECK: 2 operands expected, but 0 given.
COPY
RETQ
...
More information about the llvm-commits
mailing list