[llvm] r258627 - [Bitcode] Insert the darwin wrapper at the beginning of a file when the
Rafael Espíndola via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 26 09:06:37 PST 2016
On 23 January 2016 at 08:02, Akira Hatanaka via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> Author: ahatanak
> Date: Sat Jan 23 10:02:10 2016
> New Revision: 258627
> URL: http://llvm.org/viewvc/llvm-project?rev=258627&view=rev
> [Bitcode] Insert the darwin wrapper at the beginning of a file when the
> target is macho.
> It looks like the check for macho was accidentally dropped in r132959.
> I don't have a test case, but I'll add one if anyone knows how this can
> be tested.
llvm-as should do it, no?
In a .ll with just
target triple = "x86_64-apple-macosx"
I get a .bc that starts with "de c0 17 0b" (bitcode in LE) and with
target triple = "x86_64-pc-linux"
I get a .bc that starts with "42 43 c0 de" (BC code).
More information about the llvm-commits