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 | 9ce256421a90cd0413db220f1d60df65cb8344b6 (patch) | |
tree | af2a7ca561d9493a66c488ffd7fdc83d8bcc05fc /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | bf47fdb91c3bc7c26fb7eb6096ca3657c69bd26f (diff) | |
download | external_llvm-9ce256421a90cd0413db220f1d60df65cb8344b6.zip external_llvm-9ce256421a90cd0413db220f1d60df65cb8344b6.tar.gz external_llvm-9ce256421a90cd0413db220f1d60df65cb8344b6.tar.bz2 |
Revert unintentional parts of previous check-in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137249 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 003cc8c..475b670 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/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; |