Allow DWARFFormValue::extractValue to be called with a null CU.
[oota-llvm.git] / include / llvm / DebugInfo / DWARFFormValue.h
index 162b1deec0f6f0e5bab47f2a13ddebac7c73d904..5bb6d1b9ddb02d59a456520ef2c02bd215a1c68a 100644 (file)
@@ -57,6 +57,13 @@ public:
   bool isFormClass(FormClass FC) const;
 
   void dump(raw_ostream &OS, const DWARFUnit *U) const;
+
+  /// \brief extracts a value in data at offset *offset_ptr.
+  ///
+  /// The passed DWARFUnit is allowed to be nullptr, in which
+  /// case no relocation processing will be performed and some
+  /// kind of forms that depend on Unit information are disallowed.
+  /// \returns wether the extraction succeeded.
   bool extractValue(DataExtractor data, uint32_t *offset_ptr,
                     const DWARFUnit *u);
   bool isInlinedCStr() const {