forked from OSchip/llvm-project
Convert DbgInfoPrinter to use errs() instead of outs().
llvm-svn: 111659
This commit is contained in:
parent
5bbb88ff97
commit
a931605647
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue