mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-15 03:26:05 +00:00
Remove unused variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59570 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -273,9 +273,6 @@ bool StripDebugInfo(Module &M) {
|
||||
GV->setLinkage(GlobalValue::InternalLinkage);
|
||||
|
||||
// Delete all dbg variables.
|
||||
const Type *DbgVTy = M.getTypeByName("llvm.dbg.variable.type");
|
||||
const Type *DbgGVTy = M.getTypeByName("llvm.dbg.global_variable.type");
|
||||
if (DbgVTy || DbgGVTy)
|
||||
for (Module::global_iterator I = M.global_begin(), E = M.global_end();
|
||||
I != E; ++I) {
|
||||
GlobalVariable *GV = dyn_cast<GlobalVariable>(I);
|
||||
|
Reference in New Issue
Block a user