mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-21 03:28:31 +00:00
Add const version of OwningBinary::getBinary
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220231 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9170808b2a
commit
262b278dae
@ -140,6 +140,7 @@ public:
|
||||
OwningBinary<T> &operator=(OwningBinary<T> &&Other);
|
||||
|
||||
std::unique_ptr<T> &getBinary();
|
||||
const std::unique_ptr<T> &getBinary() const;
|
||||
std::unique_ptr<MemoryBuffer> &getBuffer();
|
||||
};
|
||||
|
||||
@ -165,6 +166,11 @@ template <typename T> std::unique_ptr<T> &OwningBinary<T>::getBinary() {
|
||||
return Bin;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
const std::unique_ptr<T> &OwningBinary<T>::getBinary() const {
|
||||
return Bin;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
std::unique_ptr<MemoryBuffer> &OwningBinary<T>::getBuffer() {
|
||||
return Buf;
|
||||
|
Loading…
Reference in New Issue
Block a user