aboutsummaryrefslogtreecommitdiffstats
path: root/tools/obj2yaml/obj2yaml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/obj2yaml/obj2yaml.cpp')
-rw-r--r--tools/obj2yaml/obj2yaml.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/obj2yaml/obj2yaml.cpp b/tools/obj2yaml/obj2yaml.cpp
index 8d128b3..38779fe 100644
--- a/tools/obj2yaml/obj2yaml.cpp
+++ b/tools/obj2yaml/obj2yaml.cpp
@@ -8,7 +8,6 @@
//===----------------------------------------------------------------------===//
#include "obj2yaml.h"
-#include "llvm/ADT/OwningPtr.h"
#include "llvm/Object/Archive.h"
#include "llvm/Object/COFF.h"
#include "llvm/Support/CommandLine.h"
@@ -38,14 +37,14 @@ int main(int argc, char *argv[]) {
llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
// Process the input file
- OwningPtr<MemoryBuffer> buf;
+ std::unique_ptr<MemoryBuffer> buf;
// TODO: If this is an archive, then burst it and dump each entry
if (error_code ec = MemoryBuffer::getFileOrSTDIN(InputFilename, buf)) {
errs() << "Error: '" << ec.message() << "' opening file '" << InputFilename
<< "'\n";
} else {
- ec = coff2yaml(outs(), buf.take());
+ ec = coff2yaml(outs(), buf.release());
if (ec)
errs() << "Error: " << ec.message() << " dumping COFF file\n";
}