1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

llvm.dbg.global_variables do not exist anymore.

llvm-svn: 85402
This commit is contained in:
Devang Patel 2009-10-28 16:51:52 +00:00
parent a77d439989
commit de81397884

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