summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2012-01-10 17:52:29 +0000
committerKevin Enderby <enderby@apple.com>2012-01-10 17:52:29 +0000
commit8d4a2204b71e205723406ef14c2347354b5bd09b (patch)
tree54824d3eb9e54effb273fc9f1cea58875dac2366 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent67bf992a8fc4193d2714d9671a284a536331ec95 (diff)
downloadbcm5719-llvm-8d4a2204b71e205723406ef14c2347354b5bd09b.tar.gz
bcm5719-llvm-8d4a2204b71e205723406ef14c2347354b5bd09b.zip
Various crash reporting tools have a problem with the dwarf generated for
assembly source when it generates the TAG_subprogram dwarf debug info for the labels that have nothing between them as in this bit of assembly source: % cat ZeroLength.s _func1: _func2: nop One solution would be to not emit the subsequent labels with the same address and use the next label with a different address or the end of the section for the AT_high_pc value of the TAG_subprogram. Turns out in llvm-mc it is not possible in all cases to determine of two symbols have the same value at the point we put out the TAG_subprogram dwarf debug info. So we will have llvm-mc instead of putting out TAG_subprogram's put out DW_TAG_label's. And the DW_TAG_label does not have a AT_high_pc value which avoids the problem. This commit is only the functional change to make the diffs clear as to what is really being changed. The next commit will be to clean up the names of such things like MCGenDwarfSubprogramEntry to something like MCGenDwarfLabelEntry. rdar://10666925 llvm-svn: 147860
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud