search for: newsmallersize

Displaying 10 results from an estimated 10 matches for "newsmallersize".

2012 May 08
3
[LLVMdev] [RFC] llvm/include/Support/OutputBuffer.h
...it() is not called before this object's destructor >> /// is called, the file is deleted in the destructor. The optional >> parameter >> /// is used if it turns out you want the file size to be smaller than >> /// initially requested. >> void commit(int64_t newSmallerSize = -1); >> }; >> >> >> The Flags will probable need to be extended over time to handle other >> clients needs. >> >> For Unix/Darwin, my plan is to implement this by: >> 1) delete the file >> 2) create a new file with a random name in same dir...
2012 May 07
4
[LLVMdev] [RFC] llvm/include/Support/OutputBuffer.h
...e and deallocates the /// buffer. If commit() is not called before this object's destructor /// is called, the file is deleted in the destructor. The optional parameter /// is used if it turns out you want the file size to be smaller than /// initially requested. void commit(int64_t newSmallerSize = -1); }; The Flags will probable need to be extended over time to handle other clients needs. For Unix/Darwin, my plan is to implement this by: 1) delete the file 2) create a new file with a random name in same directory 3) truncate the file to the new size 4) mmap() in the file r/w 5) On commi...
2012 May 08
0
[LLVMdev] [RFC] llvm/include/Support/OutputBuffer.h
...ed before this object's destructor >>> /// is called, the file is deleted in the destructor. The optional >>> parameter >>> /// is used if it turns out you want the file size to be smaller than >>> /// initially requested. >>> void commit(int64_t newSmallerSize = -1); >>> }; >>> >>> >>> The Flags will probable need to be extended over time to handle other >>> clients needs. >>> >>> For Unix/Darwin, my plan is to implement this by: >>> 1) delete the file >>> 2) create a new...
2012 May 08
0
[LLVMdev] [RFC] llvm/include/Support/OutputBuffer.h
.../// buffer.  If commit() is not called before this object's destructor >   /// is called, the file is deleted in the destructor. The optional > parameter >   /// is used if it turns out you want the file size to be smaller than >   /// initially requested. >   void commit(int64_t newSmallerSize = -1); > }; > > > The Flags will probable need to be extended over time to handle other > clients needs. > > For Unix/Darwin, my plan is to implement this by: > 1) delete the file > 2) create a new file with a random name in same directory > 3) truncate the file to the...
2012 May 18
0
[LLVMdev] [RFC] llvm/include/Support/FileOutputBuffer.h
...If commit() is not called before this object's destructor > + /// is called, the file is deleted in the destructor. The optional parameter > + /// is used if it turns out you want the file size to be smaller than > + /// initially requested. > + virtual error_code commit(int64_t newSmallerSize = -1); Why is this virtual? I don't ever see a need to subclass FileOutputBuffer. > + /// If this object was previously committed, the destructor just deletes > + /// this object. If this object was not committed, the destructor > + /// deallocates the buffer and the target file...
2012 May 17
3
[LLVMdev] [RFC] llvm/include/Support/FileOutputBuffer.h
I now have an implementation of FileOutputBuffer (OutputBuffer was already taken). The patch supports the functionality listed below and I've tested that it works for lld. -------------- next part -------------- A non-text attachment was scrubbed... Name: FileOutputBuffer.patch Type: application/octet-stream Size: 25308 bytes Desc: not available URL:
2012 May 08
0
[LLVMdev] [RFC] llvm/include/Support/OutputBuffer.h
...le and deallocates the /// buffer. If commit() is not called before this object's destructor /// is called, the file is deleted in the destructor. The optional parameter /// is used if it turns out you want the file size to be smaller than /// initially requested. void commit(int64_t newSmallerSize = -1); }; The Flags will probable need to be extended over time to handle other clients needs. For Unix/Darwin, my plan is to implement this by: 1) delete the file 2) create a new file with a random name in same directory 3) truncate the file to the new size 4) mmap() in the file r/w 5) On commi...
2012 May 08
1
[LLVMdev] [RFC] llvm/include/Support/OutputBuffer.h
...t; /// buffer. If commit() is not called before this object's destructor > /// is called, the file is deleted in the destructor. The optional parameter > /// is used if it turns out you want the file size to be smaller than > /// initially requested. > void commit(int64_t newSmallerSize = -1); > }; > > > The Flags will probable need to be extended over time to handle other clients needs. > > For Unix/Darwin, my plan is to implement this by: > 1) delete the file > 2) create a new file with a random name in same directory > 3) truncate the file to th...
2012 May 04
0
[LLVMdev] MemoryBuffer/raw_ostream hybrid for linker?
On May 3, 2012, at 6:10 PM, Nick Kledzik wrote: > Existing llvm code tends to use raw_ostream for writing files. But raw_ostream is not a good match for a linker for a couple of reasons: > > 1) When the linker creates an executable, the file needs the 'x' bit set. Currently raw_fd_ostream has no way to set that. If this were the only problem, I'd suggest just generalizing
2012 May 04
2
[LLVMdev] MemoryBuffer/raw_ostream hybrid for linker?
Existing llvm code tends to use raw_ostream for writing files. But raw_ostream is not a good match for a linker for a couple of reasons: 1) When the linker creates an executable, the file needs the 'x' bit set. Currently raw_fd_ostream has no way to set that. 2) The Unix conformance suite actually has some test cases where the linker is run and the output file does exists but is not