Add DebugLoc to the getNode() methods.
[oota-llvm.git] / include / llvm / CodeGen / DwarfWriter.h
index c2ad3a6483652012196f60f23c1b4e3b0811727b..58a2fa742373a5456620921456357ef203492d1d 100644 (file)
@@ -29,6 +29,7 @@ class DwarfDebug;
 class DwarfException;
 class MachineModuleInfo;
 class MachineFunction;
+class Value;
 class Module;
 class GlobalVariable;
 class TargetAsmInfo;
@@ -75,9 +76,12 @@ public:
   ///
   void EndFunction(MachineFunction *MF);
 
+  /// ValidDebugInfo - Return true if V represents valid debug info value.
+  bool ValidDebugInfo(Value *V);
 
-  /// label. Returns a unique label ID used to generate a label and provide
-  /// correspondence to the source line list.
+  /// RecordSourceLine - Register a source line with debug info. Returns a
+  /// unique label ID used to generate a label and provide correspondence to
+  /// the source line list.
   unsigned RecordSourceLine(unsigned Line, unsigned Col, unsigned Src);
 
   /// RecordSource - Register a source file with debug info. Returns an source
@@ -93,6 +97,10 @@ public:
   /// getRecordSourceLineCount - Count source lines.
   unsigned getRecordSourceLineCount();
 
+  /// RecordVariable - Indicate the declaration of  a local variable.
+  ///
+  void RecordVariable(GlobalVariable *GV, unsigned FrameIndex);
+
 };