Displaying 1 result from an estimated 1 matches for "filetype_obj".
Did you mean:
file_type_obs
2013 Jan 07
0
[LLVMdev] How to output a .S *and* a .OBJ file?
...() && "Could not allocate target machine!");
TargetMachine &Target = *target.get();
/*
TargetMachine::CGFT_AssemblyFile
TargetMachine::CGFT_ObjectFile
*/
TargetMachine::CodeGenFileType FileType_S = TargetMachine::CGFT_AssemblyFile;
TargetMachine::CodeGenFileType FileType_OBJ = TargetMachine::CGFT_ObjectFile;
//if ( DoCompileObj ) {
//} else if ( DoCompileS ) {
OwningPtr<tool_output_file> Out_S(GetOutputStream(FileType_S, TheTarget->getName(), TheTriple->getOS(), "BasicParser.exe"));
if ( !Out_S) {
printf( "Error creating output f...