search for: finalpath

Displaying 3 results from an estimated 3 matches for "finalpath".

2012 May 18
0
[LLVMdev] [RFC] llvm/include/Support/FileOutputBuffer.h
...return bufferEnd; > + } > + > + /// Returns size of the buffer. > + size_t getBufferSize() const { > + return bufferEnd - bufferStart; > + } > + > + /// Returns path where file will show up if buffer is committed. > + StringRef getPath() const { > + return finalPath; > + } > + > + /// Flushes the content of the buffer to its file 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...
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:
2017 Nov 09
10
Experiment on how to improve our temporary file handing.
Currently a power failure or other hard crash can cause lld leave a temporary file around. The same is true for other llvm tools. As an example, put a breakpoint in Writer.cpp:236 ("writeBuildId()") and restart the run a few times. You will get t.tmp43a735a t.tmp4deeabb t.tmp9bacdd3 t.tmpe4115c4 t.tmpeb01fff The same would happen if there was a fatal error between the