DebugInfo: Refactor emitDebugPubNames/Types into a common implementation
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 11 Mar 2014 23:18:15 +0000 (23:18 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 11 Mar 2014 23:18:15 +0000 (23:18 +0000)
commite98b0e466fd0298c3faae6cc82a2bcd273c0ed19
tree48e0a0a68cdd8a1bc27a4f23710b4156537f8a21
parent0932a749a3e2c62567535e5d27ed9910436c915b
DebugInfo: Refactor emitDebugPubNames/Types into a common implementation

I could fold the callers into their one call site, but the indirection
(given how verbose choosing the section is) seemed helpful.

The use of a member function pointer's a bit "tricky", but seems limited
enough, the call sites are simple/clean/clear, and there's only one use.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203619 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h
test/DebugInfo/X86/dwarf-pubnames-split.ll