#include "llvm/Support/Casting.h"
#include "llvm/Support/DataTypes.h"
#include <string>
+#include <memory>
namespace llvm {
virtual bool getLoadedSectionContents(StringRef Name, StringRef &Data) const {
return false;
}
-
- /// Obtain a copy of this LoadedObjectInfo.
- ///
- /// The caller is responsible for deallocation once the copy is no longer required.
- virtual LoadedObjectInfo *clone() const = 0;
+ virtual std::unique_ptr<LoadedObjectInfo> clone() const = 0;
};
}