diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-05-19 03:55:49 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-05-19 03:55:49 +0000 |
| commit | e653622b98aa31cdb183e1fd80f2b5b1d4f22bd1 (patch) | |
| tree | d68ec4108778d1c53a81d8ab9f4a2bec65465fd7 /polly/lib/Exchange/JSONExporter.cpp | |
| parent | b816593cf0c42bc1b47a5a838b48cc1e0e3d9d63 (diff) | |
| download | bcm5719-llvm-e653622b98aa31cdb183e1fd80f2b5b1d4f22bd1.tar.gz bcm5719-llvm-e653622b98aa31cdb183e1fd80f2b5b1d4f22bd1.zip | |
polly: update for LLVM API change
SVN r209103 removed the OwningPtr variant of the MemoryBuffer APIs. Switch to
the equivalent std::unique_ptr versions. This should clear up the build bots.
llvm-svn: 209104
Diffstat (limited to 'polly/lib/Exchange/JSONExporter.cpp')
| -rw-r--r-- | polly/lib/Exchange/JSONExporter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/polly/lib/Exchange/JSONExporter.cpp b/polly/lib/Exchange/JSONExporter.cpp index 07ed53dabc3..08be3a26a31 100644 --- a/polly/lib/Exchange/JSONExporter.cpp +++ b/polly/lib/Exchange/JSONExporter.cpp @@ -16,7 +16,6 @@ #include "polly/Options.h" #include "polly/ScopInfo.h" #include "polly/ScopPass.h" -#include "llvm/ADT/OwningPtr.h" #include "llvm/ADT/Statistic.h" #include "llvm/Support/FileSystem.h" #include "llvm/Support/MemoryBuffer.h" @@ -31,6 +30,7 @@ #include "isl/constraint.h" #include "isl/printer.h" +#include <memory> #include <string> using namespace llvm; @@ -193,7 +193,7 @@ bool JSONImporter::runOnScop(Scop &scop) { std::string FunctionName = R.getEntry()->getParent()->getName(); errs() << "Reading JScop '" << R.getNameStr() << "' in function '" << FunctionName << "' from '" << FileName << "'.\n"; - OwningPtr<MemoryBuffer> result; + std::unique_ptr<MemoryBuffer> result; error_code ec = MemoryBuffer::getFile(FileName, result); if (ec) { |

