Add preliminary support for hashing DIEs and breaking them into
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfDebug.h
index deb2e60689957afde39479470fd4600ed615b6c4..e14f9b135b3871c98e93e871f8dc13aff5155791 100644 (file)
@@ -428,6 +428,9 @@ class DwarfDebug {
     ImportedEntityMap;
   ImportedEntityMap ScopesWithImportedEntities;
 
+  // Holder for types that are going to be extracted out into a type unit.
+  std::vector<DIE *> TypeUnits;
+
   // DWARF5 Experimental Options
   bool HasDwarfAccelTables;
   bool HasSplitDwarf;
@@ -651,6 +654,10 @@ public:
   /// \brief Process end of an instruction.
   void endInstruction(const MachineInstr *MI);
 
+  /// \brief Add a DIE to the set of types that we're going to pull into
+  /// type units.
+  void addTypeUnitType(DIE *Die) { TypeUnits.push_back(Die); }
+
   /// \brief Look up the source id with the given directory and source file
   /// names. If none currently exists, create a new id and insert it in the
   /// SourceIds map.