-Wdeprecated-clean: Fix cases of violating the rule of 5 in ways that are deprecated...
[oota-llvm.git] / include / llvm / DebugInfo / DIContext.h
index db9ba3b36424a26206cbc370ac0635b31f42adc5..fa927d9d6bd447dcaee063cc12ca67bc00dcb440 100644 (file)
@@ -140,14 +140,18 @@ private:
 /// to be used by the DIContext implementations when applying relocations
 /// on the fly.
 class LoadedObjectInfo {
+protected:
+  LoadedObjectInfo(const LoadedObjectInfo &) = default;
+  LoadedObjectInfo() = default;
+
 public:
   virtual ~LoadedObjectInfo() = default;
 
-  /// Obtain the Load Address of a section by Name.
+  /// Obtain the Load Address of a section by SectionRef.
   ///
   /// Calculate the address of the given section.
   /// The section need not be present in the local address space. The addresses
-  /// needs to be consistent with the addresses used to query the DIContext and
+  /// need to be consistent with the addresses used to query the DIContext and
   /// the output of this function should be deterministic, i.e. repeated calls with
   /// the same Sec should give the same address.
   virtual uint64_t getSectionLoadAddress(const object::SectionRef &Sec) const = 0;