Having another go at some simple cleanup from r237975/r237976
[oota-llvm.git] / include / llvm / DebugInfo / DIContext.h
index da1b5e985d85cdf5cc8314ec2052557fb6ea3bc6..7be795f9a43669842ff80652781446b437b6cc99 100644 (file)
@@ -22,7 +22,6 @@
 #include "llvm/Support/Casting.h"
 #include "llvm/Support/DataTypes.h"
 #include <string>
-#include <memory>
 
 namespace llvm {
 
@@ -142,7 +141,7 @@ private:
 /// on the fly.
 class LoadedObjectInfo {
 public:
-  virtual ~LoadedObjectInfo() = default;
+  virtual ~LoadedObjectInfo() {}
 
   /// Obtain the Load Address of a section by Name.
   ///
@@ -166,7 +165,11 @@ public:
   virtual bool getLoadedSectionContents(StringRef Name, StringRef &Data) const {
     return false;
   }
-  virtual std::unique_ptr<LoadedObjectInfo> clone() const = 0;
+
+  /// Obtain a copy of this LoadedObjectInfo.
+  ///
+  /// The caller is responsible for deallocation once the copy is no longer required.
+  virtual LoadedObjectInfo *clone() const = 0;
 };
 
 }