mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Remove unused variables.
llvm-svn: 59570
This commit is contained in:
parent
b49b40c2fb
commit
dd2491943e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user