Changes in directory llvm/include/llvm/CodeGen:

DwarfWriter.h updated: 1.30 -> 1.31
---
Log message:

Make sure types are allocated in the scope of their use.


---
Diffs of the changes:  (+8 -9)

 DwarfWriter.h |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)


Index: llvm/include/llvm/CodeGen/DwarfWriter.h
diff -u llvm/include/llvm/CodeGen/DwarfWriter.h:1.30 
llvm/include/llvm/CodeGen/DwarfWriter.h:1.31
--- llvm/include/llvm/CodeGen/DwarfWriter.h:1.30        Thu Mar 23 12:07:55 2006
+++ llvm/include/llvm/CodeGen/DwarfWriter.h     Thu Mar 23 17:02:34 2006
@@ -121,8 +121,8 @@
   ///
   std::map<DebugInfoDesc *, CompileUnit *> DescToUnitMap;
   
-  /// DescToDieMap - Tracks the mapping of debug informaton descriptors to
-  /// DIES.
+  /// DescToDieMap - Tracks the mapping of top level debug informaton
+  /// descriptors to debug information entries.
   std::map<DebugInfoDesc *, DIE *> DescToDieMap;
   
   /// TypeToDieMap - Type to DIEType map.
@@ -302,7 +302,7 @@
   }
   void EmitDifference(const char *TagHi, unsigned NumberHi,
                       const char *TagLo, unsigned NumberLo) const;
-                                 
+                      
   /// NewAbbreviation - Add the abbreviation to the Abbreviation vector.
   ///  
   unsigned NewAbbreviation(DIEAbbrev *Abbrev);
@@ -311,11 +311,10 @@
   ///
   DWLabel NewString(const std::string &String);
   
-  /// NewBasicType - Creates a new basic type if necessary, then adds to the
-  /// owner.
-  /// FIXME - Should never be needed.
-  DIE *NewBasicType(DIE *Context, Type *Ty);
-
+  /// getDieMapSlotFor - Returns the debug information entry map slot for the
+  /// specified debug descriptor.
+  DIE *&getDieMapSlotFor(DebugInfoDesc *DD);
+                                 
 private:
 
   /// AddSourceLine - Add location information to specified debug information
@@ -324,7 +323,7 @@
 
   /// NewType - Create a new type DIE.
   ///
- DIE *NewType(DIE *Context, TypeDesc *TyDesc);
+  DIE *NewType(DIE *Context, TypeDesc *TyDesc, CompileUnit *Unit);
   
   /// NewCompileUnit - Create new compile unit and it's die.
   ///



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to