dwarfdump: Add support for dumping the table contents of DWP indexes
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 13 Nov 2015 19:18:49 +0000 (19:18 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 13 Nov 2015 19:18:49 +0000 (19:18 +0000)
commit6c420832f338b413ac671cd7f4ee43429bfe2226
treefe2b71c645bffa5117e5dd6d7d0d8aed7b939bd6
parent64294426eaa0965184b12c1355bf4389514a4601
dwarfdump: Add support for dumping the table contents of DWP indexes

This is a recommit of 252842 which was reverted in 252859. The issue was
using %s format specifier for a StringRef - used Format's
left_justify(StringRef, int) instead.

It'd be nice to have __attribute__((format(..))) on llvm::format, but
apparently it's only implemented for c-style variadics, not C++ variadic
templates. Perhaps we could fix that & conditionalize the attribute on
such...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253065 91177308-0d34-0410-b5e6-96231b3b80d8
lib/DebugInfo/DWARF/DWARFUnitIndex.cpp
test/DebugInfo/dwarfdump-dwp.test