[PATCH] D16599: ELF: Define another entry point.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 26 17:25:50 PST 2016


ruiu added inline comments.

================
Comment at: ELF/DriverUtils.cpp:128
@@ +127,3 @@
+  // (P just needs to be some symbol in the binary.)
+  void *P = (void *)(intptr_t)getLldExecutable;
+  SmallString<128> Dir;
----------------
davide wrote:
> The double cast is not exactly pretty, but I'm not exactly sure there's a way to avoid it.
I took this line from Clang. We may be able to remove (intptr_t), and just do (void *).


http://reviews.llvm.org/D16599





More information about the llvm-commits mailing list