DebugInfo: Sink DwarfDebug::ScopeVariables down into DwarfFile
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfFile.cpp
index e9df3854e780b0663d617716f38e5987bfe2ed85..3d49db3db7e7bc69264367a950dfccab1f72ca98 100644 (file)
@@ -156,7 +156,7 @@ void DwarfFile::emitStrings(const MCSection *StrSection,
 }
 
 void DwarfFile::addScopeVariable(LexicalScope *LS, DbgVariable *Var) {
 }
 
 void DwarfFile::addScopeVariable(LexicalScope *LS, DbgVariable *Var) {
-  SmallVectorImpl<DbgVariable *> &Vars = DD.getScopeVariables()[LS];
+  SmallVectorImpl<DbgVariable *> &Vars = ScopeVariables[LS];
   DIVariable DV = Var->getVariable();
   // Variables with positive arg numbers are parameters.
   if (unsigned ArgNum = DV.getArgNumber()) {
   DIVariable DV = Var->getVariable();
   // Variables with positive arg numbers are parameters.
   if (unsigned ArgNum = DV.getArgNumber()) {