Commit f7499c67 authored by Alexander Yermolovich's avatar Alexander Yermolovich Committed by Maksim Panchenko
Browse files

[BOLT][DWARF] Fix writing out dwo with DWP as input

Summary:
The code for writing out dwo files wasn't handling case where DWP is an input.
Because all the sections are part of the same binary.

One note with current implementation. .debug-str.dwo will have strings for all the dwo objects.
This is because llvm-dwp de-duplicates strings and combines them in to one section. It then re-writes .debug-str-offsets.dwo to point to new .debug-str.dwo section.

(cherry picked from FBD29244835)
parent 3e5ce1f2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment