aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>2020-12-04 20:10:06 -0800
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>2020-12-04 21:48:53 -0800
commit3d381a710220100722465ead9c64874621edead4 (patch)
tree84b8b8f3fc5439e9fc70845444584ce0c40fd13c /clang/lib/CodeGen/CodeGenModule.cpp
parent2dc4a14e4d5fee5acb2ae43866ce03c028509257 (diff)
downloadllvm-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