[llvm-commits] [llvm] r51891 - /llvm/trunk/lib/VMCore/PassManager.cpp
Bill Wendling
isanbard at gmail.com
Mon Jun 2 18:13:02 PDT 2008
If you use "DOUT" instead of "cerr", then this checking part will be
removed for a release build.
-bw
On Mon, Jun 2, 2008 at 6:02 PM, Devang Patel <dpatel at apple.com> wrote:
> Author: dpatel
> Date: Mon Jun 2 20:02:16 2008
> New Revision: 51891
>
> URL: http://llvm.org/viewvc/llvm-project?rev=51891&view=rev
> Log:
> Add debugging aid.
>
> Modified:
> llvm/trunk/lib/VMCore/PassManager.cpp
>
> Modified: llvm/trunk/lib/VMCore/PassManager.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/PassManager.cpp?rev=51891&r1=51890&r2=51891&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/VMCore/PassManager.cpp (original)
> +++ llvm/trunk/lib/VMCore/PassManager.cpp Mon Jun 2 20:02:16 2008
> @@ -621,9 +621,15 @@
> std::map<AnalysisID, Pass*>::iterator Info = I++;
> if (!dynamic_cast<ImmutablePass*>(Info->second)
> && std::find(PreservedSet.begin(), PreservedSet.end(), Info->first) ==
> - PreservedSet.end())
> + PreservedSet.end()) {
> // Remove this analysis
> AvailableAnalysis.erase(Info);
> + if (PassDebugging >= Details) {
> + Pass *S = Info->second;
> + cerr << " -- " << P->getPassName() << " is not preserving ";
> + cerr << S->getPassName() << "\n";
> + }
> + }
> }
>
> // Check inherited analysis also. If P is not preserving analysis
>
>
> _______________________________________________
> 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