Generalize ownership/passing semantics to allow dsymutil to own abbreviations via...
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 18 Nov 2015 00:34:10 +0000 (00:34 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 18 Nov 2015 00:34:10 +0000 (00:34 +0000)
commitbe1cec0cb76bf6c56145dc9c33761bbc46eee89d
treebeb46bf18f90e6f5430e9833f841782fed1fa379
parent9f7d480d96ac557ce52b525968f63f9906485cd9
Generalize ownership/passing semantics to allow dsymutil to own abbreviations via unique_ptr

While still allowing CodeGen/AsmPrinter in llvm to own them using a bump
ptr allocator. (might be nice to replace the pointers there with
something that at least automatically calls their dtors, if that's
necessary/useful, rather than having it done explicitly (I think a typed
BumpPtrAllocator already does this, or maybe a unique_ptr with a custom
deleter, etc))

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253409 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/AsmPrinter.h
lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
tools/dsymutil/DwarfLinker.cpp