summaryrefslogtreecommitdiffstats
path: root/lld/lib/Core/Resolver.cpp
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2013-02-03 10:48:50 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2013-02-03 10:48:50 +0000
commit9718f45d3987e72b675c2c0cc7435b67991464b5 (patch)
treeb7a59b65877316d526c286452b250bccb43425f8 /lld/lib/Core/Resolver.cpp
parent39678d836c2e2ae4ff8bb8a33dcee9601929d7fb (diff)
downloadbcm5719-llvm-9718f45d3987e72b675c2c0cc7435b67991464b5.tar.gz
bcm5719-llvm-9718f45d3987e72b675c2c0cc7435b67991464b5.zip
[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. llvm-svn: 174272
Diffstat (limited to 'lld/lib/Core/Resolver.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud