[llvm-commits] [llvm] r100410 - in /llvm/trunk/lib/CodeGen/AsmPrinter: DwarfDebug.h DwarfException.h

Chris Lattner sabre at nondot.org
Sun Apr 4 22:32:45 PDT 2010


Author: lattner
Date: Mon Apr  5 00:32:45 2010
New Revision: 100410

URL: http://llvm.org/viewvc/llvm-project?rev=100410&view=rev
Log:
privatize more stuff, eliminate vtables.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.h

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h?rev=100410&r1=100409&r2=100410&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h Mon Apr  5 00:32:45 2010
@@ -519,40 +519,17 @@
   ///
   DIType getBlockByrefType(DIType Ty, std::string Name);
 
-public:
-  //===--------------------------------------------------------------------===//
-  // Main entry points.
-  //
-  DwarfDebug(AsmPrinter *A, Module *M);
-  virtual ~DwarfDebug();
-
-  /// beginModule - Emit all Dwarf sections that should come prior to the
-  /// content.
-  void beginModule(Module *M);
-
-  /// endModule - Emit all Dwarf sections that should come after the content.
-  ///
-  void endModule();
-
-  /// beginFunction - Gather pre-function debug information.  Assumes being
-  /// emitted immediately after the function entry point.
-  void beginFunction(const MachineFunction *MF);
-
-  /// endFunction - Gather and emit post-function debug information.
-  ///
-  void endFunction(const MachineFunction *MF);
-
   /// recordSourceLine - Register a source line with debug info. Returns the
   /// unique label that was emitted and which provides correspondence to
   /// the source line list.
   MCSymbol *recordSourceLine(unsigned Line, unsigned Col, MDNode *Scope);
-
+  
   /// getSourceLineCount - Return the number of source lines in the debug
   /// info.
   unsigned getSourceLineCount() const {
     return Lines.size();
   }
-                            
+  
   /// getOrCreateSourceID - Public version of GetOrCreateSourceID. This can be
   /// timed. 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
@@ -560,13 +537,36 @@
   /// well.
   unsigned getOrCreateSourceID(const std::string &DirName,
                                const std::string &FileName);
-
+  
   /// extractScopeInformation - Scan machine instructions in this function
   /// and collect DbgScopes. Return true, if atleast one scope was found.
   bool extractScopeInformation();
-
+  
   /// collectVariableInfo - Populate DbgScope entries with variables' info.
   void collectVariableInfo();
+  
+public:
+  //===--------------------------------------------------------------------===//
+  // Main entry points.
+  //
+  DwarfDebug(AsmPrinter *A, Module *M);
+  ~DwarfDebug();
+
+  /// beginModule - Emit all Dwarf sections that should come prior to the
+  /// content.
+  void beginModule(Module *M);
+
+  /// endModule - Emit all Dwarf sections that should come after the content.
+  ///
+  void endModule();
+
+  /// beginFunction - Gather pre-function debug information.  Assumes being
+  /// emitted immediately after the function entry point.
+  void beginFunction(const MachineFunction *MF);
+
+  /// endFunction - Gather and emit post-function debug information.
+  ///
+  void endFunction(const MachineFunction *MF);
 
   /// beginScope - Process beginning of a scope.
   void beginScope(const MachineInstr *MI);

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.h?rev=100410&r1=100409&r2=100410&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.h (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.h Mon Apr  5 00:32:45 2010
@@ -176,7 +176,7 @@
   // Main entry points.
   //
   DwarfException(AsmPrinter *A);
-  virtual ~DwarfException();
+  ~DwarfException();
 
   /// EndModule - Emit all exception information that should come after the
   /// content.





More information about the llvm-commits mailing list