Rename DwarfUnits to DwarfFile to help avoid some naming confusion.
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfDebug.h
index 8274ad84fb0503efd4d4553bc5397c58fd44ce94..d188735f8707a01edc923d2d229016da48ea4548 100644 (file)
@@ -220,8 +220,9 @@ private:
 };
 
 /// \brief Collects and handles information specific to a particular
-/// collection of units.
-class DwarfUnits {
+/// collection of units. This collection represents all of the units
+/// that will be ultimately output into a single object file.
+class DwarfFile {
   // Target of Dwarf emission, used for sizing of abbreviations.
   AsmPrinter *Asm;
 
@@ -251,11 +252,11 @@ class DwarfUnits {
   unsigned NextAddrPoolNumber;
 
 public:
-  DwarfUnits(AsmPrinter *AP, const char *Pref, BumpPtrAllocator &DA)
+  DwarfFile(AsmPrinter *AP, const char *Pref, BumpPtrAllocator &DA)
       : Asm(AP), StringPool(DA), NextStringPoolNumber(0), StringPref(Pref),
         AddressPool(), NextAddrPoolNumber(0) {}
 
-  ~DwarfUnits();
+  ~DwarfFile();
 
   const SmallVectorImpl<Unit *> &getUnits() { return CUs; }
 
@@ -443,7 +444,7 @@ class DwarfDebug : public AsmPrinterHandler {
   unsigned GlobalRangeCount;
 
   // Holder for the file specific debug information.
-  DwarfUnits InfoHolder;
+  DwarfFile InfoHolder;
 
   // Holders for the various debug information flags that we might need to
   // have exposed. See accessor functions below for description.
@@ -480,7 +481,7 @@ class DwarfDebug : public AsmPrinterHandler {
   // to be in the .dwo sections.
 
   // Holder for the skeleton information.
-  DwarfUnits SkeletonHolder;
+  DwarfFile SkeletonHolder;
 
   void addScopeVariable(LexicalScope *LS, DbgVariable *Var);