llvm.org GIT mirror llvm / 7316638
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 Dan Gohman 10 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
3939 void printVariableDeclaration(const Value *V);
4040 public:
4141 static char ID; // Pass identification
42 PrintDbgInfo() : FunctionPass(ID), Out(outs()) {}
42 PrintDbgInfo() : FunctionPass(ID), Out(errs()) {}
4343
4444 virtual bool runOnFunction(Function &F);
4545 virtual void getAnalysisUsage(AnalysisUsage &AU) const {
None ; RUN: opt < %s -print-dbginfo -disable-output | FileCheck %s
0 ; RUN: opt < %s -print-dbginfo -disable-output |& FileCheck %s
11 ; grep {%b is variable b of type x declared at x.c:7} %t1
22 ; grep {%2 is variable b of type x declared at x.c:7} %t1
33 ; grep {@c.1442 is variable c of type int declared at x.c:4} %t1