From: Devang Patel Date: Wed, 28 Oct 2009 16:51:52 +0000 (+0000) Subject: llvm.dbg.global_variables do not exist anymore. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cd0fee86deaa91bfd3f321d5d3fa695fab7e663e;p=oota-llvm.git llvm.dbg.global_variables do not exist anymore. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85402 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/IPO/StripSymbols.cpp b/lib/Transforms/IPO/StripSymbols.cpp index 369f0fc0c82..4f6369e0033 100644 --- a/lib/Transforms/IPO/StripSymbols.cpp +++ b/lib/Transforms/IPO/StripSymbols.cpp @@ -290,15 +290,6 @@ bool StripDebugDeclare::runOnModule(Module &M) { 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(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();