[llvm] r258627 - [Bitcode] Insert the darwin wrapper at the beginning of a file when the

Akira Hatanaka via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 26 09:10:58 PST 2016


> On Jan 26, 2016, at 9:06 AM, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:
> 
> 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
>> Log:
>> [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).
> 

Can I use hexdump to print the header? Or are there other llvm tools to do that?

> Cheers,
> Rafael



More information about the llvm-commits mailing list