summaryrefslogtreecommitdiff
path: root/include/llvm/Support/FileUtilities.h
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-13 18:28:59 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-13 18:28:59 +0000
commit2923f345334432ec8407aebd1ece560a531e9e08 (patch)
treee44157d543a42988c866cc0f347b47ae3eee07bf /include/llvm/Support/FileUtilities.h
parent9153f8f4765aa7a55cfb28a0752469f5545e188a (diff)
downloadllvm-2923f345334432ec8407aebd1ece560a531e9e08.tar.gz
llvm-2923f345334432ec8407aebd1ece560a531e9e08.tar.bz2
llvm-2923f345334432ec8407aebd1ece560a531e9e08.tar.xz
For PR351:
The ReadFileIntoAddressSpace and UnmapFileFromAddressSpace functions are no longer used by LLVM. Remove them. Replacement functionality for both functions is now encapsulated in the sys::MappedFile class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18903 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/FileUtilities.h')
-rw-r--r--include/llvm/Support/FileUtilities.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/llvm/Support/FileUtilities.h b/include/llvm/Support/FileUtilities.h
index 885ee86c0d..b243df506b 100644
--- a/include/llvm/Support/FileUtilities.h
+++ b/include/llvm/Support/FileUtilities.h
@@ -61,17 +61,6 @@ bool MakeFileExecutable(const std::string &Filename);
///
bool MakeFileReadable(const std::string &Filename);
-/// ReadFileIntoAddressSpace - Attempt to map the specific file into the
-/// address space of the current process for reading. If this succeeds,
-/// return the address of the buffer and the length of the file mapped. On
-/// failure, return null.
-void *ReadFileIntoAddressSpace(const std::string &Filename, unsigned &Length);
-
-/// UnmapFileFromAddressSpace - Remove the specified file from the current
-/// address space.
-void UnmapFileFromAddressSpace(void *Buffer, unsigned Length);
-
-
/// FDHandle - Simple handle class to make sure a file descriptor gets closed
/// when the object is destroyed. This handle acts similarly to an
/// std::auto_ptr, in that the copy constructor and assignment operators