[PATCH] D91028: [llvm-objcopy][NFC] replace class Buffer/MemBuffer/FileBuffer with streams.
    Sam Clegg via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Jan 26 13:31:48 PST 2021
    
    
  
sbc100 added a comment.
> We could not use the memory-mapped file for writeUniversalBinaryToStream() since we do not know the final size.
Is there some fundamental reason why you can't determine the final output size?  In lld (wasm-ld at least) we go to some lengths to determine the final size before writing, basically for this reason.    IIUC using a memory mapped output file has some big wins.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D91028/new/
https://reviews.llvm.org/D91028
    
    
More information about the llvm-commits
mailing list