diff options
author | Devang Patel <dpatel@apple.com> | 2010-05-26 17:42:50 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-05-26 17:42:50 +0000 |
commit | 95fcc9675298aaca92d9f9a8da7b394f719065b2 (patch) | |
tree | 447a870e648f793da328c38cd25e797e32a32592 /llvm/lib/CodeGen/AsmPrinter | |
parent | 5a5e0bc3b578ee4cba917927870be76f97981a14 (diff) | |
download | bcm5719-llvm-95fcc9675298aaca92d9f9a8da7b394f719065b2.tar.gz bcm5719-llvm-95fcc9675298aaca92d9f9a8da7b394f719065b2.zip |
Remove dead code.
llvm-svn: 104706
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 6 | ||||
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | 6 |
2 files changed, 1 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 231f63c1bc5..048268fa7ca 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2198,10 +2198,8 @@ void DwarfDebug::collectVariableInfo(const MachineFunction *MF) { Processed.insert(DV); DbgVariable *RegVar = new DbgVariable(DV); Scope->addVariable(RegVar); - if (DV.getTag() != dwarf::DW_TAG_arg_variable) { - DbgValueStartMap[MInsn] = RegVar; + if (DV.getTag() != dwarf::DW_TAG_arg_variable) DbgVariableLabelsMap[RegVar] = getLabelBeforeInsn(MInsn); - } if (DbgVariable *AbsVar = findAbstractVariable(DV, MInsn->getDebugLoc())) { DbgVariableToDbgInstMap[AbsVar] = MInsn; VarToAbstractVarMap[RegVar] = AbsVar; @@ -2224,7 +2222,6 @@ void DwarfDebug::collectVariableInfo(const MachineFunction *MF) { continue; } End = *MVI; - DbgValueStartMap[End] = RegVar; MachineLocation MLoc; MLoc.set(Begin->getOperand(0).getReg(), 0); const MCSymbol *FLabel = getLabelBeforeInsn(Begin); @@ -2683,7 +2680,6 @@ void DwarfDebug::endFunction(const MachineFunction *MF) { DeleteContainerSeconds(DbgScopeMap); InsnsBeginScopeSet.clear(); InsnsEndScopeSet.clear(); - DbgValueStartMap.clear(); ConcreteScopes.clear(); DeleteContainerSeconds(AbstractScopes); AbstractScopesList.clear(); diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h index 781302e9998..5d2294918e6 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -164,12 +164,6 @@ class DwarfDebug { /// DbgScopes in AbstractScopes. DenseMap<const MDNode *, DbgVariable *> AbstractVariables; - /// DbgValueStartMap - Tracks starting scope of variable DIEs. - /// If the scope of an object begins sometime after the low pc value for the - /// scope most closely enclosing the object, the object entry may have a - /// DW_AT_start_scope attribute. - DenseMap<const MachineInstr *, DbgVariable *> DbgValueStartMap; - /// DbgVariableToFrameIndexMap - Tracks frame index used to find /// variable's value. DenseMap<const DbgVariable *, int> DbgVariableToFrameIndexMap; |