[LLVMdev] Get LLVM assembler for a function.
Óscar Fuentes
ofv at wanadoo.es
Thu Aug 20 08:16:41 PDT 2009
Óscar Fuentes <ofv at wanadoo.es> writes:
>>> Is there a method for obtaining the llvm assembler of a given Function?
>>
>> I think something like "F->print(f);" will do the right thing.
>
> Nope. It prints nothing at all.
>
> mainF->print(std::cout);
Thanks Eli and Jim.
Both methods work. My compiler was using a different backend and thus
ignoring the llvm part.
--
Óscar
More information about the llvm-dev
mailing list