This is an archive of the discontinued LLVM Phabricator instance.

Exit early from start line search for FunctionNameKind::None
Needs ReviewPublic

Authored by bcain on Apr 10 2017, 1:46 PM.

Details

Summary

rL294231 introduced a regression -- memory consumption for llvm-objdump during disassembly of ~500MB hexagon elf file was ~1.5GiB higher after that commit.

This change restores the previous behavior -- exit the search early for FunctionNameKind::None, saving some memory allocation.

Diff Detail

Event Timeline

bcain created this revision.Apr 10 2017, 1:46 PM
dblaikie edited edge metadata.Jun 1 2017, 3:10 PM

Doesn't seem clear from the API whether passing FunctionNameKind::None should also not retrieve the start line of the function. Perhaps some renaming is in order to make that explicit/clear?