aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/CodeView/SymbolSerializer.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-06-30 21:33:44 +0000
committerReid Kleckner <rnk@google.com>2017-06-30 21:33:44 +0000
commit45a7462094fc204487b71de767fd87eb28a056e6 (patch)
treeb4e2323e214829ad85d004f88344d4699cfa018e /llvm/lib/DebugInfo/CodeView/SymbolSerializer.cpp
parent9eb75c45204781886c8d598a1bc9b5c37f3cb037 (diff)
downloadllvm-45a7462094fc204487b71de767fd87eb28a056e6.zip
llvm-45a7462094fc204487b71de767fd87eb28a056e6.tar.gz
llvm-45a7462094fc204487b71de767fd87eb28a056e6.tar.bz2
[codeview] Use the first valid source location at the top of every MBB
If the instructions at the beginning of the block have no location, we're better off using the location of the first instruction in the current basic block. At the very least, that instruction post-dominates this one, whereas if we don't emit a .cv_loc directive, we end up using the potentially invalid location that falls through from the previous block. We could probably do better here by emitting some kind of ".cv_loc end" directive that stops the line table entry of the previous .cv_loc directive from bleeding out of its basic block. This would improve the line table when an entire MBB has no valid location info. llvm-svn: 306889
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/SymbolSerializer.cpp')
0 files changed, 0 insertions, 0 deletions