aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectStreamer.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2013-10-20 02:16:18 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2013-10-20 02:16:18 +0000
commit588009e484cdc4848bc990cf4f59611e8b1458a3 (patch)
tree43cdb2c838d8913909e70b7bad59ca92c793144c /llvm/lib/MC/MCObjectStreamer.cpp
parented452a0629369711982e3c59a21e13bb4f1fc5f0 (diff)
downloadllvm-588009e484cdc4848bc990cf4f59611e8b1458a3.zip
llvm-588009e484cdc4848bc990cf4f59611e8b1458a3.tar.gz
llvm-588009e484cdc4848bc990cf4f59611e8b1458a3.tar.bz2
Emit DWARF line entries for all data in the instruction stream.
r182712 attempted to do this, but it failed to handle data emitted via EmitBytes. llvm-svn: 193041
Diffstat (limited to 'llvm/lib/MC/MCObjectStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCObjectStreamer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCObjectStreamer.cpp b/llvm/lib/MC/MCObjectStreamer.cpp
index 7fa6695..bc14c2a 100644
--- a/llvm/lib/MC/MCObjectStreamer.cpp
+++ b/llvm/lib/MC/MCObjectStreamer.cpp
@@ -305,6 +305,7 @@ void MCObjectStreamer::EmitDwarfAdvanceFrameAddr(const MCSymbol *LastLabel,
}
void MCObjectStreamer::EmitBytes(StringRef Data) {
+ MCLineEntry::Make(this, getCurrentSection().first);
getOrCreateDataFragment()->getContents().append(Data.begin(), Data.end());
}