Improve explicit memory ownership of DIEs
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 28 Apr 2014 20:36:45 +0000 (20:36 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 28 Apr 2014 20:36:45 +0000 (20:36 +0000)
commit7c17e947565da71b06eb67362c1b6a37595bc7de
treeb7fe48df31e2cd88e430f1ca498cb3b2f0a82372
parentbecd8e75b80bf84b99dbfd650930024dd743ddef
Improve explicit memory ownership of DIEs

Now that the subtle constructScopeDIE has been refactored into two
functions - one returning memory to take ownership of, one returning a
pointer to already owning memory - push unique_ptr through more APIs.

I think this completes most of the unique_ptr ownership of DIEs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207442 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h