aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCStreamer.cpp
diff options
context:
space:
mode:
authorChen Zheng <czhengsz@cn.ibm.com>2021-03-04 20:47:41 -0500
committerChen Zheng <czhengsz@cn.ibm.com>2021-03-04 21:07:52 -0500
commit87bbf3d1f8c344c98a6f3079b76405ca22b83b79 (patch)
treeab02e7aa168a8c1ecbbadf638fc8dbd303ed104d /llvm/lib/MC/MCStreamer.cpp
parent46f52fb65524e233b9e1ae254b8c021ce7631ef3 (diff)
downloadllvm-87bbf3d1f8c344c98a6f3079b76405ca22b83b79.zip
llvm-87bbf3d1f8c344c98a6f3079b76405ca22b83b79.tar.gz
llvm-87bbf3d1f8c344c98a6f3079b76405ca22b83b79.tar.bz2
[XCOFF][DebugInfo] support DWARF for XCOFF for assembly output.
Reviewed By: jasonliu Differential Revision: https://reviews.llvm.org/D95518
Diffstat (limited to 'llvm/lib/MC/MCStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCStreamer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp
index b2fc542..afaa570 100644
--- a/llvm/lib/MC/MCStreamer.cpp
+++ b/llvm/lib/MC/MCStreamer.cpp
@@ -1019,6 +1019,11 @@ MCSymbol *MCStreamer::emitDwarfUnitLength(const Twine &Prefix,
return Hi;
}
+void MCStreamer::emitDwarfLineStartLabel(MCSymbol *StartSym) {
+ // Set the value of the symbol, as we are at the start of the line table.
+ emitLabel(StartSym);
+}
+
void MCStreamer::emitAssignment(MCSymbol *Symbol, const MCExpr *Value) {
visitUsedExpr(*Value);
Symbol->setVariableValue(Value);