Zhang via llvm-dev
2018-Aug-06 07:14 UTC
[llvm-dev] C++ API for using the LLVM Integrated Assembler?
Hi: Quick question: I'm trying to compile some arm64 assembly text into MachO object files. Which APIs should I call and is there any examples? Thanks in advance Zhang -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180806/14b83f7b/attachment.html>
Francis Visoiu Mistrih via llvm-dev
2018-Aug-06 08:50 UTC
[llvm-dev] C++ API for using the LLVM Integrated Assembler?
Hi Zhang,> On 6 Aug 2018, at 08:14, Zhang via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hi: > Quick question: I'm trying to compile some arm64 assembly text into MachO object files. Which APIs should I call and is there any examples?The best example is to look at llvm-mc. Specifically in tools/llvm-mc/llvm-mc.cpp, the function AssembleInput and the way it’s called from main. Cheers, — Francis> Thanks in advance > > Zhang > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev