Final Changes For PR495:
authorReid Spencer <rspencer@reidspencer.com>
Fri, 8 Jul 2005 03:08:58 +0000 (03:08 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 8 Jul 2005 03:08:58 +0000 (03:08 +0000)
commita229c5cce75209047db32c6039aa0b0fd481f049
tree7e69ee21a80ed018e52af9071602c3db887b8326
parentedb9d6bc720bb2328bb49f4400bf8d6b3b04ef50
Final Changes For PR495:

This chagne just renames some sys::Path methods to ensure they are not
misused. The Path documentation now divides methods into two dimensions:
Path/Disk and accessor/mutator. Path accessors and mutators only operate
on the Path object itself without making any disk accesses. Disk accessors
and mutators will also access or modify the file system. Because of the
potentially destructive nature of disk mutators, it was decided that all
such methods should end in the work "Disk" to ensure the user recognizes
that the change will occur on the file system. This patch makes that
change. The method name changes are:

makeReadable        -> makeReadableOnDisk
makeWriteable       -> makeWriteableOnDisk
makeExecutable      -> makeExecutableOnDisk
setStatusInfo       -> setStatusInfoOnDisk
createDirectory     -> createDirectoryOnDisk
createFile          -> createFileOnDisk
createTemporaryFile -> createTemporaryFileOnDisk
destroy             -> eraseFromDisk
rename              -> renamePathOnDisk

These changes pass the Linux Deja Gnu tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22354 91177308-0d34-0410-b5e6-96231b3b80d8
17 files changed:
include/llvm/Support/FileUtilities.h
include/llvm/System/Path.h
lib/Archive/ArchiveWriter.cpp
lib/Bytecode/Archive/ArchiveWriter.cpp
lib/Support/ToolRunner.cpp
lib/System/Unix/Path.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/gccld.cpp
tools/llvm-ar/llvm-ar.cpp
tools/llvm-ld/llvm-ld.cpp
tools/llvmc/CompilerDriver.cpp