diff options
author | Fangrui Song <i@maskray.me> | 2021-06-16 10:08:20 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2021-06-16 10:08:20 -0700 |
commit | 1de18ad8d79eb328ad410fa60209e5dfa19752c8 (patch) | |
tree | db67bfd7889ee7824e56a7594e4b7efb16c993ec /llvm/lib/ProfileData/SampleProf.cpp | |
parent | 2193347e72fad6a78ce4a96c8d89f9a43a028e79 (diff) | |
download | llvm-1de18ad8d79eb328ad410fa60209e5dfa19752c8.zip llvm-1de18ad8d79eb328ad410fa60209e5dfa19752c8.tar.gz llvm-1de18ad8d79eb328ad410fa60209e5dfa19752c8.tar.bz2 |
[llvm-objcopy] Make ihex writer similar to binary writer
There is no need to differentiate whether `UseSegments` is true or
false. Unifying the cases makes the behavior closer to BinaryWriter.
This improves compatibility with objcopy because SHF_ALLOC sections not in
a PT_LOAD will not be skipped. Such cases are usually erroneous input, though.
Reviewed By: jhenderson
Differential Revision: https://reviews.llvm.org/D104186
Diffstat (limited to 'llvm/lib/ProfileData/SampleProf.cpp')
0 files changed, 0 insertions, 0 deletions