aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC
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
commite52fac1632dc43d0595e06baf5743608b173dfbc (patch)
tree4acd6372d456131b83e31cd538a24a4fa697b7cd /lib/MC
parent53c9e5fbb9492824adfa1b004c198236fba1a93b (diff)
downloadexternal_llvm-e52fac1632dc43d0595e06baf5743608b173dfbc.zip
external_llvm-e52fac1632dc43d0595e06baf5743608b173dfbc.tar.gz
external_llvm-e52fac1632dc43d0595e06baf5743608b173dfbc.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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193041 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r--lib/MC/MCObjectStreamer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/MC/MCObjectStreamer.cpp b/lib/MC/MCObjectStreamer.cpp
index 7fa6695..bc14c2a 100644
--- a/lib/MC/MCObjectStreamer.cpp
+++ b/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());
}