From: Alexey Samsonov Date: Mon, 20 Oct 2014 20:32:47 +0000 (+0000) Subject: Add const version of OwningBinary::getBinary X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=262b278dae1b3c82a87d03d5bed0f132bd36343d;p=oota-llvm.git Add const version of OwningBinary::getBinary git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220231 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Object/Binary.h b/include/llvm/Object/Binary.h index 23c66eae205..e4cb6f49a09 100644 --- a/include/llvm/Object/Binary.h +++ b/include/llvm/Object/Binary.h @@ -140,6 +140,7 @@ public: OwningBinary &operator=(OwningBinary &&Other); std::unique_ptr &getBinary(); + const std::unique_ptr &getBinary() const; std::unique_ptr &getBuffer(); }; @@ -165,6 +166,11 @@ template std::unique_ptr &OwningBinary::getBinary() { return Bin; } +template +const std::unique_ptr &OwningBinary::getBinary() const { + return Bin; +} + template std::unique_ptr &OwningBinary::getBuffer() { return Buf;