[llvm-commits] [llvm] r85402 - /llvm/trunk/lib/Transforms/IPO/StripSymbols.cpp
Chris Lattner
clattner at apple.com
Wed Oct 28 09:58:55 PDT 2009
On Oct 28, 2009, at 9:51 AM, Devang Patel wrote:
> Author: dpatel
> Date: Wed Oct 28 11:51:52 2009
> New Revision: 85402
>
> URL: http://llvm.org/viewvc/llvm-project?rev=85402&view=rev
> Log:
> llvm.dbg.global_variables do not exist anymore.
Do dbg.declares point to global variables anymore? If not, can the
whole 'DeadConstants' thing be zapped?
-Chris
>
>
> Modified:
> llvm/trunk/lib/Transforms/IPO/StripSymbols.cpp
>
> Modified: llvm/trunk/lib/Transforms/IPO/StripSymbols.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/StripSymbols.cpp?rev=85402&r1=85401&r2=85402&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm/trunk/lib/Transforms/IPO/StripSymbols.cpp (original)
> +++ llvm/trunk/lib/Transforms/IPO/StripSymbols.cpp Wed Oct 28
> 11:51:52 2009
> @@ -290,15 +290,6 @@
> Declare->eraseFromParent();
> }
>
> - // Delete all llvm.dbg.global_variables.
> - for (Module::global_iterator I = M.global_begin(), E =
> M.global_end();
> - I != E; ++I) {
> - GlobalVariable *GV = dyn_cast<GlobalVariable>(I);
> - if (!GV) continue;
> - if (GV->use_empty() && GV-
> >getName().startswith("llvm.dbg.global_variable"))
> - DeadConstants.push_back(GV);
> - }
> -
> while (!DeadConstants.empty()) {
> Constant *C = DeadConstants.back();
> DeadConstants.pop_back();
>
>
> _______________________________________________
> 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