OSDN Git Service

For PR495:
authorReid Spencer <rspencer@reidspencer.com>
Thu, 7 Jul 2005 23:21:43 +0000 (23:21 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Thu, 7 Jul 2005 23:21:43 +0000 (23:21 +0000)
commitdd04df0ec33a903ee7fc747701bafde622f77d8b
tree341d4fd4ba6e81cb79966ef2c379ccbb2d8b5100
parentb3d59701c89a6e03a0e0909543f3e7bd9140900f
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
29 files changed:
include/llvm/Support/FileUtilities.h
include/llvm/System/Path.h
lib/Archive/ArchiveReader.cpp
lib/Archive/ArchiveWriter.cpp
lib/Bytecode/Archive/ArchiveReader.cpp
lib/Bytecode/Archive/ArchiveWriter.cpp
lib/Debugger/ProgramInfo.cpp
lib/Linker/LinkModules.cpp
lib/Linker/Linker.cpp
lib/Support/SystemUtils.cpp
lib/Support/ToolRunner.cpp
lib/System/Path.cpp
lib/System/Unix/Path.inc
lib/System/Unix/Program.inc
lib/System/Unix/Signals.inc
lib/System/Win32/Path.inc
tools/bugpoint/CrashDebugger.cpp
tools/bugpoint/ExecutionDriver.cpp
tools/bugpoint/Miscompilation.cpp
tools/bugpoint/OptimizerDriver.cpp
tools/bugpoint/ToolRunner.cpp
tools/gccld/GenerateCode.cpp
tools/gccld/gccld.cpp
tools/llvm-ar/llvm-ar.cpp
tools/llvm-ld/llvm-ld.cpp
tools/llvm-link/llvm-link.cpp
tools/llvm-ranlib/llvm-ranlib.cpp
tools/llvmc/CompilerDriver.cpp
tools/llvmc/Configuration.cpp