[llvm] r265066 - Object: Add function for moving thin archive object buffer vector out of Archive.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 31 15:08:57 PDT 2016
Author: pcc
Date: Thu Mar 31 17:08:57 2016
New Revision: 265066
URL: http://llvm.org/viewvc/llvm-project?rev=265066&view=rev
Log:
Object: Add function for moving thin archive object buffer vector out of Archive.
Differential Revision: http://reviews.llvm.org/D18664
Modified:
llvm/trunk/include/llvm/Object/Archive.h
Modified: llvm/trunk/include/llvm/Object/Archive.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/Archive.h?rev=265066&r1=265065&r2=265066&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/Archive.h (original)
+++ llvm/trunk/include/llvm/Object/Archive.h Thu Mar 31 17:08:57 2016
@@ -212,6 +212,10 @@ public:
StringRef getSymbolTable() const { return SymbolTable; }
uint32_t getNumberOfSymbols() const;
+ std::vector<std::unique_ptr<MemoryBuffer>> takeThinBuffers() {
+ return std::move(ThinBuffers);
+ }
+
private:
StringRef SymbolTable;
StringRef StringTable;
More information about the llvm-commits
mailing list