commit | 5cc319a42a914b24b164a94d9a563c728a7a4026 | [log] [tgz] |
---|---|---|
author | Richard Mitton <richard@codersnotes.com> | Thu Sep 19 23:21:01 2013 +0000 |
committer | Richard Mitton <richard@codersnotes.com> | Thu Sep 19 23:21:01 2013 +0000 |
tree | 2101b566f8fb8e3eea815cf1e29fc86c632a322a | |
parent | 70e0b047be83cbaca06c0cc72e508667bcd5e95f [diff] [blame] |
Added support for generate DWARF .debug_aranges sections automatically. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191052 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index d0173f6..e662377 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -881,6 +881,9 @@ if (!ModuleFlags.empty()) getObjFileLowering().emitModuleFlags(OutStreamer, ModuleFlags, Mang, TM); + // Make sure we wrote out everything we need. + OutStreamer.Flush(); + // Finalize debug and EH information. if (DE) { {