[llvm-commits] CVS: llvm/include/llvm/CodeGen/DwarfWriter.h MachineDebugInfo.h

Jim Laskey jlaskey at apple.com
Thu Jan 26 13:23:01 PST 2006



Changes in directory llvm/include/llvm/CodeGen:

DwarfWriter.h updated: 1.17 -> 1.18
MachineDebugInfo.h updated: 1.7 -> 1.8
---
Log message:

Use global information to fill out Dwarf compile units.


---
Diffs of the changes:  (+7 -2)

 DwarfWriter.h      |    5 +++--
 MachineDebugInfo.h |    4 ++++
 2 files changed, 7 insertions(+), 2 deletions(-)


Index: llvm/include/llvm/CodeGen/DwarfWriter.h
diff -u llvm/include/llvm/CodeGen/DwarfWriter.h:1.17 llvm/include/llvm/CodeGen/DwarfWriter.h:1.18
--- llvm/include/llvm/CodeGen/DwarfWriter.h:1.17	Thu Jan 26 14:21:46 2006
+++ llvm/include/llvm/CodeGen/DwarfWriter.h	Thu Jan 26 15:22:49 2006
@@ -32,6 +32,7 @@
   // Forward declarations.
   //
   class AsmPrinter;
+  class CompileUnitWrapper;
   class DIE;
   class DwarfWriter; 
   class DWContext;
@@ -645,10 +646,10 @@
                            unsigned Size, unsigned Align);
 
 private:
+
     /// NewCompileUnit - Create new compile unit information.
     ///
-    DIE *NewCompileUnit(const std::string &Directory,
-                        const std::string &SourceName);
+    DIE *DwarfWriter::NewCompileUnit(const CompileUnitWrapper &CompileUnit);
 
     /// EmitInitial - Emit initial Dwarf declarations.
     ///


Index: llvm/include/llvm/CodeGen/MachineDebugInfo.h
diff -u llvm/include/llvm/CodeGen/MachineDebugInfo.h:1.7 llvm/include/llvm/CodeGen/MachineDebugInfo.h:1.8
--- llvm/include/llvm/CodeGen/MachineDebugInfo.h:1.7	Thu Jan 26 14:21:46 2006
+++ llvm/include/llvm/CodeGen/MachineDebugInfo.h	Thu Jan 26 15:22:49 2006
@@ -271,6 +271,10 @@
   ///
   void MachineDebugInfo::SetupCompileUnits(Module &M);
 
+  /// getCompileUnits - Return a vector of debug compile units.
+  ///
+  const UniqueVector<CompileUnitWrapper> getCompileUnits() const;
+
   /// getGlobalVariables - Return a vector of debug global variables.
   ///
   static std::vector<GlobalWrapper> getGlobalVariables(Module &M);






More information about the llvm-commits mailing list