diff options
| -rw-r--r-- | polly/lib/Exchange/JSONExporter.cpp | 4 | ||||
| -rw-r--r-- | polly/lib/Transform/Pocc.cpp | 7 |
2 files changed, 6 insertions, 5 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) { diff --git a/polly/lib/Transform/Pocc.cpp b/polly/lib/Transform/Pocc.cpp index 8002b7655e1..73d991c7e28 100644 --- a/polly/lib/Transform/Pocc.cpp +++ b/polly/lib/Transform/Pocc.cpp @@ -30,13 +30,14 @@ #include "llvm/Support/Program.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/system_error.h" -#include "llvm/ADT/OwningPtr.h" #include "llvm/ADT/SmallString.h" #include "isl/space.h" #include "isl/map.h" #include "isl/constraint.h" +#include <memory> + using namespace llvm; using namespace polly; @@ -239,8 +240,8 @@ bool Pocc::runOnScop(Scop &S) { } void Pocc::printScop(raw_ostream &OS) const { - OwningPtr<MemoryBuffer> stdoutBuffer; - OwningPtr<MemoryBuffer> stderrBuffer; + std::unique_ptr<MemoryBuffer> stdoutBuffer; + std::unique_ptr<MemoryBuffer> stderrBuffer; OS << "Command line: "; |

