[PATCH] D82051: [llvm-install-name-tool] Add -rpath option
Sameer Arora via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 29 07:31:30 PDT 2020
sameerarora101 marked 2 inline comments as done.
sameerarora101 added inline comments.
================
Comment at: llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp:35
+static StringRef getPayloadString(const LoadCommand &LC) {
+ assert(isLoadCommandWithPayloadString(LC) &&
+ "unsupported load command encountered");
----------------
gchatelet wrote:
> In release mode `warning: unused function 'isLoadCommandWithPayloadString'`. Maybe you want to guard the function definition?
>
> ```
> #ifndef NDEBUG
> static bool isLoadCommandWithPayloadString(const LoadCommand &LC) { ... }
> #endif
> ```
Thanks for catching this! I was running my tests with asserts on. I have pushed a fix for the issue here: https://reviews.llvm.org/D82768 Please review.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82051/new/
https://reviews.llvm.org/D82051
More information about the llvm-commits
mailing list