[codeview] Clean up machinery for deferring .cv_loc emission
authorReid Kleckner <rnk@google.com>
Tue, 28 Aug 2018 23:25:59 +0000 (23:25 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 28 Aug 2018 23:25:59 +0000 (23:25 +0000)
commit689f7733173c4a7757f10bc7442905c18274f288
tree7525f8a1cd9fea7b4f9e41b69ce027e4c4535240
parent35818e27894db154a9c884cb4d203dc84684ef59
[codeview] Clean up machinery for deferring .cv_loc emission

Now that we create the label at the point of the directive, we don't
need to set the "current CV location", and then later when we emit the
next instruction, create a label for it and emit it.

DWARF still defers the labels used in .debug_loc until the next
instruction or value, for reasons unknown.

llvm-svn: 340883
15 files changed:
llvm/include/llvm/MC/MCCodeView.h
llvm/include/llvm/MC/MCContext.h
llvm/include/llvm/MC/MCStreamer.h
llvm/lib/MC/MCAsmStreamer.cpp
llvm/lib/MC/MCCodeView.cpp
llvm/lib/MC/MCContext.cpp
llvm/lib/MC/MCObjectStreamer.cpp
llvm/lib/MC/MCStreamer.cpp
llvm/test/DebugInfo/COFF/asm.ll
llvm/test/DebugInfo/COFF/inlining-header.ll
llvm/test/DebugInfo/COFF/inlining.ll
llvm/test/DebugInfo/COFF/local-variables.ll
llvm/test/DebugInfo/COFF/multifile.ll
llvm/test/DebugInfo/COFF/multifunction.ll
llvm/test/DebugInfo/COFF/simple.ll