mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
70197a3a04
commit
cd0fee86de
@ -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