Displaying 1 result from an estimated 1 matches for "fos_obj".
Did you mean:
fooobj
2013 Jan 07
0
[LLVMdev] How to output a .S *and* a .OBJ file?
...n false;
}
// Build up all of the passes that we want to do to the module.
PassManager PM;
PM.add(new TargetData(module));
// Override default to generate verbose assembly.
Target.setAsmVerbosityDefault(true);
{
formatted_raw_ostream FOS_S(Out_S->os());
formatted_raw_ostream FOS_OBJ(Out_OBJ->os());
// Ask the target to add backend passes as necessary.
bool NoVerify = true;
if (Target.addPassesToEmitFile(PM, FOS_S, FileType_S, NoVerify)) {
printf( "target does not support generation of this file type!\n");
return false;
}
if (Target.addPasse...