Index: src/IceGlobalContext.h |
diff --git a/src/IceGlobalContext.h b/src/IceGlobalContext.h |
index 3c5377304fd1171b87e1deaf951b96642712acf5..8dca08f6209a1f9baae426f09ad85ae89834cd75 100644 |
--- a/src/IceGlobalContext.h |
+++ b/src/IceGlobalContext.h |
@@ -15,7 +15,8 @@ |
#ifndef SUBZERO_SRC_ICEGLOBALCONTEXT_H |
#define SUBZERO_SRC_ICEGLOBALCONTEXT_H |
-#include "llvm/ADT/OwningPtr.h" |
+#include <memory> |
+ |
#include "llvm/Support/Allocator.h" |
#include "llvm/Support/raw_ostream.h" |
@@ -161,7 +162,7 @@ private: |
llvm::BumpPtrAllocator Allocator; |
VerboseMask VMask; |
- llvm::OwningPtr<class ConstantPool> ConstPool; |
+ std::unique_ptr<class ConstantPool> ConstPool; |
Intrinsics IntrinsicsInfo; |
const TargetArch Arch; |
const OptLevel Opt; |
@@ -171,7 +172,7 @@ private: |
RandomNumberGenerator RNG; |
CodeStats StatsFunction; |
CodeStats StatsCumulative; |
- llvm::OwningPtr<class TimerStack> Timers; |
+ std::unique_ptr<class TimerStack> Timers; |
GlobalContext(const GlobalContext &) LLVM_DELETED_FUNCTION; |
GlobalContext &operator=(const GlobalContext &) LLVM_DELETED_FUNCTION; |