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
This commit is contained in:
Dan Gohman 2010-08-20 18:03:05 +00:00
parent 3120c18e08
commit 7316638bc7
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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