Add DebugLoc field and simple accessors.
[oota-llvm.git] / include / llvm / CodeGen / DwarfWriter.h
index 7c9ada8305d0245baed9131c7d1680159a1f0aa4..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