diff options
Diffstat (limited to 'llvm/tools/opt/Debugify.cpp')
| -rw-r--r-- | llvm/tools/opt/Debugify.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/tools/opt/Debugify.cpp b/llvm/tools/opt/Debugify.cpp index 6d12b7e3637..39bbaa81316 100644 --- a/llvm/tools/opt/Debugify.cpp +++ b/llvm/tools/opt/Debugify.cpp @@ -163,10 +163,10 @@ bool checkDebugifyMetadata(Module &M, continue; } - outs() << "ERROR: Instruction with empty DebugLoc in function "; - outs() << F.getName() << " --"; - I.print(outs()); - outs() << "\n"; + errs() << "ERROR: Instruction with empty DebugLoc in function "; + errs() << F.getName() << " --"; + I.print(errs()); + errs() << "\n"; HasErrors = true; } @@ -185,17 +185,17 @@ bool checkDebugifyMetadata(Module &M, // Print the results. for (unsigned Idx : MissingLines.set_bits()) - outs() << "WARNING: Missing line " << Idx + 1 << "\n"; + errs() << "WARNING: Missing line " << Idx + 1 << "\n"; for (unsigned Idx : MissingVars.set_bits()) - outs() << "ERROR: Missing variable " << Idx + 1 << "\n"; + errs() << "ERROR: Missing variable " << Idx + 1 << "\n"; HasErrors |= MissingVars.count() > 0; - outs() << Banner << " [" << NameOfWrappedPass << "]: " + errs() << Banner << " [" << NameOfWrappedPass << "]: " << (HasErrors ? "FAIL" : "PASS") << '\n'; if (HasErrors) { - outs() << "Module IR Dump\n"; - M.print(outs(), nullptr, false); + errs() << "Module IR Dump\n"; + M.print(errs(), nullptr, false); } // Strip the Debugify Metadata if required. |

