diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-20 18:03:05 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-20 18:03:05 +0000 |
commit | 7316638bc7c180c3054ad7e7739baae5b25a95b7 (patch) | |
tree | c54e9b3ab0eed1937b557c1c4c08c95819308427 | |
parent | 3120c18e08290e80ec4f109678269779cfe9e313 (diff) | |
download | external_llvm-7316638bc7c180c3054ad7e7739baae5b25a95b7.zip external_llvm-7316638bc7c180c3054ad7e7739baae5b25a95b7.tar.gz external_llvm-7316638bc7c180c3054ad7e7739baae5b25a95b7.tar.bz2 |
Convert DbgInfoPrinter to use errs() instead of outs().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111659 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/DbgInfoPrinter.cpp | 2 | ||||
-rw-r--r-- | test/DebugInfo/printdbginfo2.ll | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/DbgInfoPrinter.cpp b/lib/Analysis/DbgInfoPrinter.cpp index bdd9a26..0567750 100644 --- a/lib/Analysis/DbgInfoPrinter.cpp +++ b/lib/Analysis/DbgInfoPrinter.cpp @@ -40,7 +40,7 @@ namespace { void printVariableDeclaration(const Value *V); public: static char ID; // Pass identification - PrintDbgInfo() : FunctionPass(ID), Out(outs()) {} + PrintDbgInfo() : FunctionPass(ID), Out(errs()) {} virtual bool runOnFunction(Function &F); virtual void getAnalysisUsage(AnalysisUsage &AU) const { diff --git a/test/DebugInfo/printdbginfo2.ll b/test/DebugInfo/printdbginfo2.ll index e19395b..3193791 100644 --- a/test/DebugInfo/printdbginfo2.ll +++ b/test/DebugInfo/printdbginfo2.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -print-dbginfo -disable-output | FileCheck %s +; RUN: opt < %s -print-dbginfo -disable-output |& FileCheck %s ; grep {%b is variable b of type x declared at x.c:7} %t1 ; grep {%2 is variable b of type x declared at x.c:7} %t1 ; grep {@c.1442 is variable c of type int declared at x.c:4} %t1 |