Reland "[lld-macho] Fix assertion failure in registerCompactUnwind""
authorVy Nguyen <vyng@google.com>
Tue, 9 Nov 2021 15:42:21 +0000 (10:42 -0500)
committerVy Nguyen <vyng@google.com>
Tue, 9 Nov 2021 16:52:46 +0000 (11:52 -0500)
commit2e1be96df696edc352255779e0498034c35daf57
tree652e2f883f44ed3ab31b1a1136ca22319194cf9f
parentdc8f0035ca990fc5587bd508fed609f995e7c842
Reland "[lld-macho] Fix assertion failure in registerCompactUnwind""

PR/52372

  Differential Revision: https://reviews.llvm.org/D112977

New changes:
- use llvm-otool instead of `otool` which doesn't in exist on non-OSX platforms
- add llvm-otool to the set of tools used by test so that the bot will use the <build_dir>/bin/llvm-otool instead of the unqualified `llvm-otool` (which may not exist)
- update tests since the latest (TOT) llvm-otool prints a space between two bytes and the old one doesn't.
lld/MachO/SymbolTable.cpp
lld/test/MachO/weak-definition-gc.s
lld/test/lit.cfg.py