summaryrefslogtreecommitdiff
path: root/include/llvm/Object/IRObjectFile.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-24 13:56:32 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-24 13:56:32 +0000
commit0d50598d71c5cc81c0e777a0ddf3e692e634f565 (patch)
treeb179b244b88112d4c4c3959c85eff70ad202c543 /include/llvm/Object/IRObjectFile.h
parentd3aaad2d266afb80bb4be2815d45b4300e3f0c0f (diff)
downloadllvm-0d50598d71c5cc81c0e777a0ddf3e692e634f565.tar.gz
llvm-0d50598d71c5cc81c0e777a0ddf3e692e634f565.tar.bz2
llvm-0d50598d71c5cc81c0e777a0ddf3e692e634f565.tar.xz
Pass a unique_ptr<MemoryBuffer> to the constructors in the Binary hierarchy.
Once the objects are constructed, they own the buffer. Passing a unique_ptr makes that clear. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211595 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object/IRObjectFile.h')
-rw-r--r--include/llvm/Object/IRObjectFile.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Object/IRObjectFile.h b/include/llvm/Object/IRObjectFile.h
index 97a75b763d..3e6817554e 100644
--- a/include/llvm/Object/IRObjectFile.h
+++ b/include/llvm/Object/IRObjectFile.h
@@ -27,7 +27,8 @@ class IRObjectFile : public SymbolicFile {
std::unique_ptr<Mangler> Mang;
public:
- IRObjectFile(MemoryBuffer *Object, std::error_code &EC, LLVMContext &Context);
+ IRObjectFile(std::unique_ptr<MemoryBuffer> Object, std::error_code &EC,
+ LLVMContext &Context);
~IRObjectFile();
void moveSymbolNext(DataRefImpl &Symb) const override;
std::error_code printSymbolName(raw_ostream &OS,