diff options
author | Rui Ueyama <ruiu@google.com> | 2015-05-31 21:04:56 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2015-05-31 21:04:56 +0000 |
commit | d7c2f5847af50181bba9b59dacf39cf19db9bfca (patch) | |
tree | a298852eda09a6a712e54c0a93ec7ff714addaef /llvm/lib/Object/ObjectFile.cpp | |
parent | faa8bfdd1aa8bbaa02bd6e2adb8324180539af58 (diff) | |
download | llvm-d7c2f5847af50181bba9b59dacf39cf19db9bfca.zip llvm-d7c2f5847af50181bba9b59dacf39cf19db9bfca.tar.gz llvm-d7c2f5847af50181bba9b59dacf39cf19db9bfca.tar.bz2 |
COFF: Make the Driver own all MemoryBuffers. NFC.
Previously, a MemoryBuffer of a file was owned by each InputFile object.
This patch makes the Driver own all of them. InputFiles now have only
MemoryBufferRefs. This change simplifies ownership managment
(particularly for ObjectFile -- the object owned a MemoryBuffer only when
it's not created from an archive file, because in that case a parent
archive file owned the entire buffer. Now it owns nothing unconditionally.)
llvm-svn: 238690
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions