Skip to content
  • Rui Ueyama's avatar
    COFF: Make the Driver own all MemoryBuffers. NFC. · d7c2f584
    Rui Ueyama authored
    Previously, a MemoryBuffer of a file was owned by each InputFile object.
    This patch makes the Driver own all of them. InputFiles now have only
    MemoryBufferRefs. This change simplifies ownership managment
    (particularly for ObjectFile -- the object owned a MemoryBuffer only when
    it's not created from an archive file, because in that case a parent
    archive file owned the entire buffer. Now it owns nothing unconditionally.)
    
    llvm-svn: 238690
    d7c2f584
Loading