summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCELFStreamer.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-12-10 07:39:47 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-12-10 07:39:47 +0000
commit0a017a6db249cda63852c1561406edd5bc150bcf (patch)
tree16b16da1415f4d340431cc09e67795403b2f235e /llvm/lib/MC/MCELFStreamer.cpp
parent3046b4d72fa98863cc6773cf99426876308ea621 (diff)
downloadbcm5719-llvm-0a017a6db249cda63852c1561406edd5bc150bcf.tar.gz
bcm5719-llvm-0a017a6db249cda63852c1561406edd5bc150bcf.zip
Fixed version of 121434 with no new memory leaks.
llvm-svn: 121471
Diffstat (limited to 'llvm/lib/MC/MCELFStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCELFStreamer.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/llvm/lib/MC/MCELFStreamer.cpp b/llvm/lib/MC/MCELFStreamer.cpp
index 18d8fa39edd..6900b247ce8 100644
--- a/llvm/lib/MC/MCELFStreamer.cpp
+++ b/llvm/lib/MC/MCELFStreamer.cpp
@@ -30,6 +30,7 @@
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetAsmBackend.h"
+#include "llvm/Target/TargetAsmInfo.h"
using namespace llvm;
@@ -478,14 +479,8 @@ void MCELFStreamer::EmitInstToData(const MCInst &Inst) {
}
void MCELFStreamer::Finish() {
- // FIXME: duplicated code with the MachO streamer.
- // Dump out the dwarf file & directory tables and line tables.
- if (getContext().hasDwarfFiles()) {
- const MCSection *DwarfLineSection =
- getContext().getELFSection(".debug_line", 0, 0,
- SectionKind::getDataRelLocal());
- MCDwarfFileTable::Emit(this, DwarfLineSection);
- }
+ if (!FrameInfos.empty())
+ MCDwarfFrameEmitter::Emit(*this);
for (std::vector<LocalCommon>::const_iterator i = LocalCommons.begin(),
e = LocalCommons.end();
OpenPOWER on IntegriCloud