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
This commit is contained in:
Devang Patel 2009-10-28 16:51:52 +00:00
parent 70197a3a04
commit cd0fee86de

View File

@ -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<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();