summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCAsmStreamer.cpp
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2011-12-09 18:09:40 +0000
committerKevin Enderby <enderby@apple.com>2011-12-09 18:09:40 +0000
commite7739d484f15cb55a526f90b93ccb0f84c91d13e (patch)
treefd50d7f33b6f1b62a9997a5df2f1246293817849 /llvm/lib/MC/MCAsmStreamer.cpp
parent5ca04bd4e70638da3918c9388b4169d85bcccc83 (diff)
downloadbcm5719-llvm-e7739d484f15cb55a526f90b93ccb0f84c91d13e.tar.gz
bcm5719-llvm-e7739d484f15cb55a526f90b93ccb0f84c91d13e.zip
The second part of support for generating dwarf for assembly source files. This
generates the dwarf Compile Unit DIE and a dwarf subprogram DIE for each non-temporary label. The next part will be to get the clang driver to enable this when assembling a .s file. rdar://9275556 llvm-svn: 146262
Diffstat (limited to 'llvm/lib/MC/MCAsmStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCAsmStreamer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCAsmStreamer.cpp b/llvm/lib/MC/MCAsmStreamer.cpp
index d90f7b2ad2d..c785c032231 100644
--- a/llvm/lib/MC/MCAsmStreamer.cpp
+++ b/llvm/lib/MC/MCAsmStreamer.cpp
@@ -1284,6 +1284,10 @@ void MCAsmStreamer::Finish() {
if (getContext().hasDwarfFiles() && !UseLoc)
MCDwarfFileTable::Emit(this);
+ // If we are generating dwarf for assembly source files dump out the sections.
+ if (getContext().getGenDwarfForAssembly())
+ MCGenDwarfInfo::Emit(this);
+
if (!UseCFI)
EmitFrames(false);
}
OpenPOWER on IntegriCloud