Move DIContext.h to common DebugInfo location.
[oota-llvm.git] / lib / DebugInfo / DWARF / DWARFUnit.cpp
index d4ecd69e0aebbfd03e98a343db28db8dfb6c3537..406915a9e4c722333245568c8144bb1eee127f25 100644 (file)
@@ -256,7 +256,7 @@ DWARFUnit::DWOHolder::DWOHolder(StringRef DWOPath)
     return;
   DWOFile = std::move(Obj.get());
   DWOContext.reset(
-      cast<DWARFContext>(DIContext::getDWARFContext(*DWOFile.getBinary())));
+      cast<DWARFContext>(new DWARFContextInMemory(*DWOFile.getBinary())));
   if (DWOContext->getNumDWOCompileUnits() > 0)
     DWOU = DWOContext->getDWOCompileUnitAtIndex(0);
 }