diff options
author | Reid Kleckner <rnk@google.com> | 2017-06-30 21:33:44 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2017-06-30 21:33:44 +0000 |
commit | 45a7462094fc204487b71de767fd87eb28a056e6 (patch) | |
tree | b4e2323e214829ad85d004f88344d4699cfa018e /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h | |
parent | 9eb75c45204781886c8d598a1bc9b5c37f3cb037 (diff) | |
download | bcm5719-llvm-45a7462094fc204487b71de767fd87eb28a056e6.tar.gz bcm5719-llvm-45a7462094fc204487b71de767fd87eb28a056e6.zip |
[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/CodeGen/AsmPrinter/CodeViewDebug.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h index 2cd495aec6d..fd8f60425c2 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h @@ -118,7 +118,6 @@ class LLVM_LIBRARY_VISIBILITY CodeViewDebug : public DebugHandlerBase { SmallVector<LocalVariable, 1> Locals; - DebugLoc LastLoc; const MCSymbol *Begin = nullptr; const MCSymbol *End = nullptr; unsigned FuncId = 0; |