Hi
I see that clang creates a temporary file when generating bc/ll/.o files and it moves the temporary file to the final file when the code generation is complete. Any reason why a temporary file is needed here ?
CompilerInstance::createDefaultOutputFile(bool Binary,
StringRef InFile,
StringRef Extension) {
return createOutputFile(getFrontendOpts().OutputFile, Binary,
/RemoveFileOnSignal=/true, InFile, Extension,
-/UseTemporary=/true-);
}
Thanks
Xin