mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
llvm.dbg.global_variables do not exist anymore.
llvm-svn: 85402
This commit is contained in:
parent
a77d439989
commit
de81397884
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user