mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-08 00:24:25 +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:
@ -65,7 +65,7 @@ static void ProcessFailure(sys::Path ProgPath, const char** Args) {
|
||||
ErrorFile.close();
|
||||
}
|
||||
|
||||
ErrorFilename.destroyFile();
|
||||
ErrorFilename.destroy();
|
||||
throw ToolExecutionError(OS.str());
|
||||
}
|
||||
|
||||
@ -176,7 +176,7 @@ void LLC::OutputAsm(const std::string &Bytecode, sys::Path &OutputAsmFile) {
|
||||
void LLC::compileProgram(const std::string &Bytecode) {
|
||||
sys::Path OutputAsmFile;
|
||||
OutputAsm(Bytecode, OutputAsmFile);
|
||||
OutputAsmFile.destroyFile();
|
||||
OutputAsmFile.destroy();
|
||||
}
|
||||
|
||||
int LLC::ExecuteProgram(const std::string &Bytecode,
|
||||
@ -321,7 +321,7 @@ void CBE::OutputC(const std::string &Bytecode, sys::Path& OutputCFile) {
|
||||
void CBE::compileProgram(const std::string &Bytecode) {
|
||||
sys::Path OutputCFile;
|
||||
OutputC(Bytecode, OutputCFile);
|
||||
OutputCFile.destroyFile();
|
||||
OutputCFile.destroy();
|
||||
}
|
||||
|
||||
int CBE::ExecuteProgram(const std::string &Bytecode,
|
||||
|
Reference in New Issue
Block a user