[cfe-users] How to compile .cpp file into LLVM IR with LLVM API?
dev at antonsmirnov.name
Tue Jun 24 00:08:11 PDT 2014
I'd like to compile source code (.cpp source file) using LLVM classes (not
from command-line) into LLVM IR bytecode. How can i do it? I can't create
processes so no executable invocations (like clang or ld) are allowed. I
believe ld is not needed as i'm not going to link the files.
Actually what i need is to do clang -S -emit-llvm main.cpp but using
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-users