Skip to content
  • Rui Ueyama's avatar
    b9732566
    ELF2: Manage BumpPtrAllocator ownership better. · b9732566
    Rui Ueyama authored
    Previously, each ArgParser owned a BumpPtrAllocator, and arguments parsed
    by an ArgParser would refer strings allocated using the BumpPtrAllocator
    only when response files were used. This could cause a subtle bug because
    such ownership was not obvious.
    
    This patch moves the ownership from ArgParser to Driver and make the
    ownership explicit.
    
    llvm-svn: 249963
    b9732566
    ELF2: Manage BumpPtrAllocator ownership better.
    Rui Ueyama authored
    Previously, each ArgParser owned a BumpPtrAllocator, and arguments parsed
    by an ArgParser would refer strings allocated using the BumpPtrAllocator
    only when response files were used. This could cause a subtle bug because
    such ownership was not obvious.
    
    This patch moves the ownership from ArgParser to Driver and make the
    ownership explicit.
    
    llvm-svn: 249963
Loading