diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2020-12-04 20:10:06 -0800 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2020-12-04 21:48:53 -0800 |
commit | 3d381a710220100722465ead9c64874621edead4 (patch) | |
tree | 84b8b8f3fc5439e9fc70845444584ce0c40fd13c /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 2dc4a14e4d5fee5acb2ae43866ce03c028509257 (diff) | |
download | llvm-3d381a710220100722465ead9c64874621edead4.zip llvm-3d381a710220100722465ead9c64874621edead4.tar.gz llvm-3d381a710220100722465ead9c64874621edead4.tar.bz2 |
[llvm-nm][MachO] Don't call getFlags on redacted symbols
Avoid calling getFlags on a non-existent symbol.
The way this is triggered is by calling strip -N on a binary, which sets
the MH_NLIST_OUTOFSYNC_WITH_DYLDINFO header flag. Then, in the
LC_FUNCTION_STARTS command, nm is trying to print the stripped symbols
and needs the proper checks.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions