mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Eliminate some unnessary Path::exists() calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104888 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -183,16 +183,14 @@ const void* LTOCodeGenerator::compile(size_t* length, std::string& errMsg)
|
||||
genResult = this->generateAssemblyCode(asmFile, errMsg);
|
||||
}
|
||||
if ( genResult ) {
|
||||
if ( uniqueAsmPath.exists() )
|
||||
uniqueAsmPath.eraseFromDisk();
|
||||
uniqueAsmPath.eraseFromDisk();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// make unique temp .o file to put generated object file
|
||||
sys::PathWithStatus uniqueObjPath("lto-llvm.o");
|
||||
if ( uniqueObjPath.createTemporaryFileOnDisk(true, &errMsg) ) {
|
||||
if ( uniqueAsmPath.exists() )
|
||||
uniqueAsmPath.eraseFromDisk();
|
||||
uniqueAsmPath.eraseFromDisk();
|
||||
return NULL;
|
||||
}
|
||||
sys::RemoveFileOnSignal(uniqueObjPath);
|
||||
|
Reference in New Issue
Block a user