[LLVMbugs] [Bug 1369] NEW: [libsystem] Implement better support for new MemoryBuffer class

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Apr 29 00:05:16 PDT 2007


http://llvm.org/bugs/show_bug.cgi?id=1369

           Summary: [libsystem] Implement better support for new
                    MemoryBuffer class
           Product: libraries
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: System Library
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sabre at nondot.org


The new MemoryBuffer class (soon to be used by multiple llvm clients) has two major FIXMEs, caused by 
deficiencies in the libsystem interface:

1. We need a way to portably read a file into a pre-allocated memory buffer for the 
MemoryBuffer::getFile method.  This is easy on Unix (code is provided) but needs a Win32 
implementation.

2. MemoryBufferMMapFile ctor: the caller of the ctor knows the length of the file being opened (in fact, 
it has a fully populated PathWithStatus object).  However, the MappedFile::open method takes a path, 
not a PathWithStatus object, which it then uses to re-stat the file to get its length (an extra, inefficient, 
syscall).  MappedFile::open should just take a PathWithStatus object?

-Chris



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list