[polly] r209104 - polly: update for LLVM API change

Saleem Abdulrasool compnerd at compnerd.org
Sun May 18 20:55:51 PDT 2014


Author: compnerd
Date: Sun May 18 22:55:49 2014
New Revision: 209104

URL: http://llvm.org/viewvc/llvm-project?rev=209104&view=rev
Log:
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.

Modified:
    polly/trunk/lib/Exchange/JSONExporter.cpp
    polly/trunk/lib/Transform/Pocc.cpp

Modified: polly/trunk/lib/Exchange/JSONExporter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/JSONExporter.cpp?rev=209104&r1=209103&r2=209104&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/JSONExporter.cpp (original)
+++ polly/trunk/lib/Exchange/JSONExporter.cpp Sun May 18 22:55:49 2014
@@ -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) {

Modified: polly/trunk/lib/Transform/Pocc.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/Pocc.cpp?rev=209104&r1=209103&r2=209104&view=diff
==============================================================================
--- polly/trunk/lib/Transform/Pocc.cpp (original)
+++ polly/trunk/lib/Transform/Pocc.cpp Sun May 18 22:55:49 2014
@@ -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: ";
 





More information about the llvm-commits mailing list