[llvm-commits] CVS: llvm/include/llvm/Support/FileUtilities.h

Reid Spencer reid at x10sys.com
Mon Dec 13 10:29:10 PST 2004



Changes in directory llvm/include/llvm/Support:

FileUtilities.h updated: 1.22 -> 1.23
---
Log message:

For PR351: http://llvm.cs.uiuc.edu/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.


---
Diffs of the changes:  (+0 -11)

Index: llvm/include/llvm/Support/FileUtilities.h
diff -u llvm/include/llvm/Support/FileUtilities.h:1.22 llvm/include/llvm/Support/FileUtilities.h:1.23
--- llvm/include/llvm/Support/FileUtilities.h:1.22	Mon Dec 13 11:01:53 2004
+++ llvm/include/llvm/Support/FileUtilities.h	Mon Dec 13 12:28:59 2004
@@ -61,17 +61,6 @@
 ///
 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






More information about the llvm-commits mailing list