Convert DbgInfoPrinter to use errs() instead of outs().

llvm-svn: 111659
This commit is contained in:
Dan Gohman 2010-08-20 18:03:05 +00:00
parent 5bbb88ff97
commit a931605647
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