Convert DbgInfoPrinter to use errs() instead of outs().
authorDan Gohman <gohman@apple.com>
Fri, 20 Aug 2010 18:03:05 +0000 (18:03 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 20 Aug 2010 18:03:05 +0000 (18:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111659 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DbgInfoPrinter.cpp
test/DebugInfo/printdbginfo2.ll

index bdd9a26feacb19e8fabc4213959bb5bd6ca96865..0567750606104a51211e5e9b9c99fa928808758a 100644 (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 {
index e19395b0df1f480deefb3e07ef79de10ea7a968b..3193791974775f4d828370dbee7f8e0e7ea04e07 100644 (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