[cfe-users] temporary file while codegeneration
    Xin Tong 
    trent.tong at gmail.com
       
    Mon Dec  9 00:06:21 PST 2013
    
    
  
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20131209/2b9f1b17/attachment.html>
    
    
More information about the cfe-users
mailing list