AlexDenisov / bitcode_retriever

Retrieves Bitcode from Mach-O binaries
MIT License
179 stars 32 forks source link

llvm-dis: Invalid record #3

Open wezhousheng opened 8 years ago

wezhousheng commented 8 years ago

I've used the method you introduced and get files from .xar file. Finally use llvm-dis, but i get such error of llvm-dis: Invalid record. It's may be the wrong format of the bitcode file. Any suggestion?

AlexDenisov commented 8 years ago

Hi and sorry for the long delay. Just checked my example (make subject) and the format seems to be fine. The only reason I see: llvm we have (open source version) doesn't support some records from llvm/clang provided by Apple (e.g. some swift specific stuff).

praseodym commented 8 years ago

Now that Apple has open sourced LLVM, you might have more luck with llvm-dis from the swift llvm fork.

AlexDenisov commented 8 years ago

@praseodym thank you, this is very valid point. I'll take a look