mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
For PR495:
Get rid of the difference between file paths and directory paths. The Path class now simply stores a path that can refer to either a file or a directory. This required various changes in the implementation and interface of the class with the corresponding impact to its users. Doxygen comments were also updated to reflect these changes. Interface changes are: appendDirectory -> appendComponent appendFile -> appendComponent elideDirectory -> eraseComponent elideFile -> eraseComponent elideSuffix -> eraseSuffix renameFile -> rename setDirectory -> set setFile -> set Changes pass Dejagnu and llvm-test/SingleSource tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22349 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -281,7 +281,7 @@ std::string BugDriver::compileSharedObject(const std::string &BytecodeFile) {
|
||||
exit(1);
|
||||
|
||||
// Remove the intermediate C file
|
||||
OutputCFile.destroyFile();
|
||||
OutputCFile.destroy();
|
||||
|
||||
return "./" + SharedObjectFile;
|
||||
}
|
||||
@ -302,9 +302,9 @@ bool BugDriver::diffProgram(const std::string &BytecodeFile,
|
||||
|
||||
// If we're checking the program exit code, assume anything nonzero is bad.
|
||||
if (CheckProgramExitCode && ProgramExitedNonzero) {
|
||||
Output.destroyFile();
|
||||
Output.destroy();
|
||||
if (RemoveBytecode)
|
||||
sys::Path(BytecodeFile).destroyFile();
|
||||
sys::Path(BytecodeFile).destroy();
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -321,10 +321,11 @@ bool BugDriver::diffProgram(const std::string &BytecodeFile,
|
||||
}
|
||||
|
||||
// Remove the generated output.
|
||||
Output.destroyFile();
|
||||
Output.destroy();
|
||||
|
||||
// Remove the bytecode file if we are supposed to.
|
||||
if (RemoveBytecode) sys::Path(BytecodeFile).destroyFile();
|
||||
if (RemoveBytecode)
|
||||
sys::Path(BytecodeFile).destroy();
|
||||
return FilesDifferent;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user