From 5ca98fd98791947eba83a1ed3f2c8191ef7afa6c Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 24 Nov 2014 09:08:18 +0000 Subject: Vendor import of llvm RELEASE_350/final tag r216957 (effectively, 3.5.0 release): https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_350/final@216957 --- lib/MC/MCDisassembler/Disassembler.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'lib/MC/MCDisassembler/Disassembler.h') diff --git a/lib/MC/MCDisassembler/Disassembler.h b/lib/MC/MCDisassembler/Disassembler.h index 4855af27dd2c..d1d40cd23875 100644 --- a/lib/MC/MCDisassembler/Disassembler.h +++ b/lib/MC/MCDisassembler/Disassembler.h @@ -18,7 +18,6 @@ #define LLVM_MC_DISASSEMBLER_H #include "llvm-c/Disassembler.h" -#include "llvm/ADT/OwningPtr.h" #include "llvm/ADT/SmallString.h" #include "llvm/Support/raw_ostream.h" #include @@ -56,23 +55,23 @@ private: // LLVMDisasmInstruction(). // // The LLVM target corresponding to the disassembler. - // FIXME: using llvm::OwningPtr causes a malloc error + // FIXME: using std::unique_ptr causes a malloc error // when this LLVMDisasmContext is deleted. const Target *TheTarget; // The assembly information for the target architecture. - llvm::OwningPtr MAI; + std::unique_ptr MAI; // The register information for the target architecture. - llvm::OwningPtr MRI; + std::unique_ptr MRI; // The subtarget information for the target architecture. - llvm::OwningPtr MSI; + std::unique_ptr MSI; // The instruction information for the target architecture. - llvm::OwningPtr MII; + std::unique_ptr MII; // The assembly context for creating symbols and MCExprs. - llvm::OwningPtr Ctx; + std::unique_ptr Ctx; // The disassembler for the target architecture. - llvm::OwningPtr DisAsm; + std::unique_ptr DisAsm; // The instruction printer for the target architecture. - llvm::OwningPtr IP; + std::unique_ptr IP; // The options used to set up the disassembler. uint64_t Options; // The CPU string. -- cgit v1.2.3