llvm-6502/lib/Object
Michael J. Spencer 0f76e648d8 [Object][Archive] Improve performance.
Improve performance of iterating over children and accessing the member file
buffer by caching the file size and moving code out to the header.

This also makes getBuffer return a StringRef instead of a MemoryBuffer. Both
fixing a memory leak and removing a malloc.

This takes getBuffer from ~10% of the time in lld to unmeasurable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174272 91177308-0d34-0410-b5e6-96231b3b80d8
2013-02-03 10:48:50 +00:00
..
Archive.cpp [Object][Archive] Improve performance. 2013-02-03 10:48:50 +00:00
Binary.cpp
CMakeLists.txt
COFFObjectFile.cpp
ELFObjectFile.cpp [Support] Add LLVM_IS_UNALIGNED_ACCESS_FAST. 2013-02-03 10:48:31 +00:00
Error.cpp
LLVMBuild.txt
MachOObject.cpp [MC/Mach-O] Add support for linker options in Mach-O files. 2013-01-18 01:26:07 +00:00
MachOObjectFile.cpp Object: Fix errant fallthrough. 2013-01-31 19:46:57 +00:00
Makefile
Object.cpp
ObjectFile.cpp When encountering an unknown file format, ObjectFile::createObjectFile should 2013-01-25 20:53:41 +00:00