[PATCH] D37371: [llvm-dwp] Add command line option "-e"

Alexander Shaposhnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 1 21:59:56 PDT 2017


alexshap updated this revision to Diff 113642.
alexshap added a comment.

Update the binaries used by the test and document the hack used to generate "portable" binaries.

I have not committed this diff yet and will keep this open for some time since the problem with the test
might be of independent interest. 
Notes:

1. obj2yaml + sed + yaml2obj doesn't seem to be an option at this point

(we need to edit the debug info, obj2yaml dumps dwarf just as hex).

2. running the compiler + linker doesn't seem to be an option (since this is an llvm test).
3. the approach chosen below (while being hacky) only requires some efforts at the data preparation step and is quite simple,

thus it seems to be the smaller evil than other options are, 
however i assume i could have missed something.


Repository:
  rL LLVM

https://reviews.llvm.org/D37371

Files:
  test/tools/llvm-dwp/Inputs/dwos_list_from_exec/a.dwo
  test/tools/llvm-dwp/Inputs/dwos_list_from_exec/b.dwo
  test/tools/llvm-dwp/Inputs/dwos_list_from_exec/c.dwo
  test/tools/llvm-dwp/Inputs/dwos_list_from_exec/d.dwo
  test/tools/llvm-dwp/Inputs/dwos_list_from_exec/e.dwo
  test/tools/llvm-dwp/Inputs/dwos_list_from_exec/main
  test/tools/llvm-dwp/X86/dwos_list_from_exec_simple.test
  tools/llvm-dwp/llvm-dwp.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37371.113642.patch
Type: text/x-patch
Size: 7815 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170902/801d95c2/attachment.bin>


More information about the llvm-commits mailing list