llvm-dwp: Coalesce code for reading the CU's DW_AT_GNU_dwo_id and DW_AT_name
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 24 Mar 2016 22:17:08 +0000 (22:17 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 24 Mar 2016 22:17:08 +0000 (22:17 +0000)
commitce7c6cfe0e817251548a8c335ccb99bf5c0b12b4
tree29a1e5b12066795ff779c1a15aada44d9dee8b82
parent6b510a4c01d9a237859629ed95fdfbd9007dc361
llvm-dwp: Coalesce code for reading the CU's DW_AT_GNU_dwo_id and DW_AT_name

Going to be reading the DW_AT_GNU_dwo_name shortly as well, and there
was already enough duplication here that it was worth refactoring
rather than adding even more.

llvm-svn: 264350
llvm/test/tools/llvm-dwp/X86/simple.test
llvm/tools/llvm-dwp/llvm-dwp.cpp