macOS在其CommandLineTools中有llvm-otool。
llvm-otool 在 llvm 中吗?我在 https://github.com/llvm-mirror/llvm.git 的 llvm 源代码中看不到它。
有人知道在哪里可以找到它的源代码吗?
Apple 软件开源部分的源代码可在 https://opensource.apple.com/获得。具体来说,otool
源应该在这里:https://opensource.apple.com/source/cctools/和这里:https://opensource.apple.com/source/llvmCore/(根据其手册页,llvm-otool
只是一个调用LLVM objdump
的垫片)。
我在这里检查了上游LLVM的llvm-otool
:https://github.com/llvm/llvm-project/commit/1a3f88658a02be6be5224fca9d9123b79958f289
文档:https://llvm.org/docs/CommandGuide/llvm-otool.html
它不是Xcode附带的那个,但它的行为就像它一样。