diff options
| author | Devang Patel <dpatel@apple.com> | 2011-08-10 21:16:49 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2011-08-10 21:16:49 +0000 |
| commit | e30746c844564fe6bc9274db0fc56a1634c021ff (patch) | |
| tree | be37649738832895dedf3b6951b6af02aecc52a1 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
| parent | 5431380dd4cee98a25b1c1e1cb7900f0338b5cfb (diff) | |
| download | bcm5719-llvm-e30746c844564fe6bc9274db0fc56a1634c021ff.tar.gz bcm5719-llvm-e30746c844564fe6bc9274db0fc56a1634c021ff.zip | |
Revert unintentional parts of previous check-in.
llvm-svn: 137249
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 003cc8c4674..475b6704c28 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1126,17 +1126,14 @@ void DwarfDebug::endModule() { } /// findAbstractVariable - Find abstract variable, if any, associated with Var. -DbgVariable *DwarfDebug::findAbstractVariable(DIVariable &DV, +DbgVariable *DwarfDebug::findAbstractVariable(DIVariable &Var, DebugLoc ScopeLoc) { - LLVMContext &Ctx = DV->getContext(); - - // More then one inlined variable corresponds to one abstract variable. - DIVariable Var = cleanseInlinedVariable(DV, Ctx); DbgVariable *AbsDbgVariable = AbstractVariables.lookup(Var); if (AbsDbgVariable) return AbsDbgVariable; + LLVMContext &Ctx = Var->getContext(); LexicalScope *Scope = LScopes.findAbstractScope(ScopeLoc.getScope(Ctx)); if (!Scope) return NULL; |

