[llvm-dwp] Initial partial prototype
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 1 Dec 2015 00:48:39 +0000 (00:48 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 1 Dec 2015 00:48:39 +0000 (00:48 +0000)
commitbb823837e04dc83f63c5a6c021aae05655b68dc9
tree638fc2fd4012ce537ff90f9e8d26f985214e2044
parent629180472c0c66f4c44ef9bf06949e79331cd031
[llvm-dwp] Initial partial prototype

This just concatenates the common DWP sections without doing any of the
fancy DWP things like:

1) update str_offsets
2) deduplicating strings
3) merging/creating cu/tu_index

Patches for these will follow shortly.

(also not sure about target triple/object file type for this tool - do I
really need a whole triple just to write an object file that contains
purely static/hardcoded bytes in each section? & I guess I should just
pick it based on the first input, maybe, rather than hardcoding for now
- but we only produce .dwo on ELF platforms with objcopy for now anyway)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254355 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/StringMap.h
include/llvm/ADT/StringSet.h
test/tools/llvm-dwp/Inputs/simple/a.cpp [new file with mode: 0644]
test/tools/llvm-dwp/Inputs/simple/a.dwo [new file with mode: 0644]
test/tools/llvm-dwp/Inputs/simple/b.cpp [new file with mode: 0644]
test/tools/llvm-dwp/Inputs/simple/b.dwo [new file with mode: 0644]
test/tools/llvm-dwp/X86/lit.local.cfg [new file with mode: 0644]
test/tools/llvm-dwp/X86/simple.test [new file with mode: 0644]
tools/llvm-dwp/llvm-dwp.cpp