dwarfdump: Reference the appropriate line table segment when dumping dwp files
[oota-llvm.git] / include / llvm / DebugInfo / DWARF / DWARFCompileUnit.h
index 9f7527fc66ea03ea3d6aaf9236698914a24beb3c..bae3154b3b5f25ec80539fce8fd03186032a1999 100644 (file)
@@ -18,14 +18,17 @@ class DWARFCompileUnit : public DWARFUnit {
 public:
   DWARFCompileUnit(DWARFContext &Context, const DWARFSection &Section,
                    const DWARFDebugAbbrev *DA, StringRef RS, StringRef SS,
-                   StringRef SOS, StringRef AOS, bool LE,
-                   const DWARFUnitSectionBase &UnitSection)
-      : DWARFUnit(Context, Section, DA, RS, SS, SOS, AOS, LE, UnitSection) {}
+                   StringRef SOS, StringRef AOS, StringRef LS, bool LE,
+                   const DWARFUnitSectionBase &UnitSection,
+                   const DWARFUnitIndex::Entry *Entry)
+      : DWARFUnit(Context, Section, DA, RS, SS, SOS, AOS, LS, LE, UnitSection,
+                  Entry) {}
   void dump(raw_ostream &OS);
+  static const DWARFSectionKind Section = DW_SECT_INFO;
   // VTable anchor.
   ~DWARFCompileUnit() override;
 };
 
-} // namespace llvm
+}
 
 #endif