llvm/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 Object: Add support for opening stdin. 2011-10-08 00:17:58 +00:00
CMakeLists.txt build/CMake: Finish removal of add_llvm_library_dependencies. 2011-11-29 19:25:30 +00:00
COFFObjectFile.cpp Add interface for querying object files for symbol values. 2012-10-29 10:47:00 +00:00
ELFObjectFile.cpp [Support] Add LLVM_IS_UNALIGNED_ACCESS_FAST. 2013-02-03 10:48:31 +00:00
Error.cpp Object: Add proper error handling. 2011-06-25 17:55:23 +00:00
LLVMBuild.txt Object: drop bogus VMCore dependency 2012-04-03 15:48:10 +00:00
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 Fixed ObjectFile functions: 2011-11-29 17:40:10 +00:00
ObjectFile.cpp When encountering an unknown file format, ObjectFile::createObjectFile should 2013-01-25 20:53:41 +00:00