[llvm-commits] [llvm] r92029 - /llvm/trunk/lib/Analysis/AliasSetTracker.cpp
Chris Lattner
clattner at apple.com
Wed Dec 23 14:23:47 PST 2009
On Dec 23, 2009, at 11:27 AM, David Greene wrote:
> Author: greened
> Date: Wed Dec 23 13:27:59 2009
> New Revision: 92029
>
> URL: http://llvm.org/viewvc/llvm-project?rev=92029&view=rev
> Log:
>
> Convert debug messages to use dbgs(). Generally this means
> s/errs/dbgs/g except for certain special cases.
The change to dump() is fine, the change to AliasSetPrinter is not.
-Chris
>
> Modified:
> llvm/trunk/lib/Analysis/AliasSetTracker.cpp
>
> Modified: llvm/trunk/lib/Analysis/AliasSetTracker.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/AliasSetTracker.cpp?rev=92029&r1=92028&r2=92029&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm/trunk/lib/Analysis/AliasSetTracker.cpp (original)
> +++ llvm/trunk/lib/Analysis/AliasSetTracker.cpp Wed Dec 23 13:27:59
> 2009
> @@ -19,6 +19,7 @@
> #include "llvm/Type.h"
> #include "llvm/Target/TargetData.h"
> #include "llvm/Assembly/Writer.h"
> +#include "llvm/Support/Debug.h"
> #include "llvm/Support/ErrorHandling.h"
> #include "llvm/Support/InstIterator.h"
> #include "llvm/Support/Format.h"
> @@ -549,8 +550,8 @@
> OS << "\n";
> }
>
> -void AliasSet::dump() const { print(errs()); }
> -void AliasSetTracker::dump() const { print(errs()); }
> +void AliasSet::dump() const { print(dbgs()); }
> +void AliasSetTracker::dump() const { print(dbgs()); }
>
> //
> =
> =
> =
> ----------------------------------------------------------------------=
> ==//
> // ASTCallbackVH Class Implementation
> @@ -591,7 +592,7 @@
>
> for (inst_iterator I = inst_begin(F), E = inst_end(F); I != E;
> ++I)
> Tracker->add(&*I);
> - Tracker->print(errs());
> + Tracker->print(dbgs());
> delete Tracker;
> return false;
> }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list