diff options
author | Kevin Enderby <enderby@apple.com> | 2011-12-09 18:09:40 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2011-12-09 18:09:40 +0000 |
commit | 94c2e85bea1ab1b837a4c055ccc83d5cd32dd027 (patch) | |
tree | 2439394068bac231063b5bd6d977167d65e29ebf /lib/MC/MCObjectStreamer.cpp | |
parent | bf67a99c35412db4bf6c1e2fd511d9044d6acc71 (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146262 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCObjectStreamer.cpp')
-rw-r--r-- | lib/MC/MCObjectStreamer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/MC/MCObjectStreamer.cpp b/lib/MC/MCObjectStreamer.cpp index 90c957f7be..663d0ca491 100644 --- a/lib/MC/MCObjectStreamer.cpp +++ b/lib/MC/MCObjectStreamer.cpp @@ -260,5 +260,9 @@ void MCObjectStreamer::Finish() { if (getContext().hasDwarfFiles()) MCDwarfFileTable::Emit(this); + // If we are generating dwarf for assembly source files dump out the sections. + if (getContext().getGenDwarfForAssembly()) + MCGenDwarfInfo::Emit(this); + getAssembler().Finish(); } |