summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCELFStreamer.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-12-10 04:01:09 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-12-10 04:01:09 +0000
commita945a34c736208dec10f88700ef2e3a14ac88632 (patch)
tree3d51c0939c939cb555ef303a888122e2f76516fc /llvm/lib/MC/MCELFStreamer.cpp
parent33f793892f88dd741edbdf1f207b47b0e66f4517 (diff)
downloadbcm5719-llvm-a945a34c736208dec10f88700ef2e3a14ac88632.tar.gz
bcm5719-llvm-a945a34c736208dec10f88700ef2e3a14ac88632.zip
Revert my previous patch to make the valgrind bots happy.
llvm-svn: 121461
Diffstat (limited to 'llvm/lib/MC/MCELFStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCELFStreamer.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/llvm/lib/MC/MCELFStreamer.cpp b/llvm/lib/MC/MCELFStreamer.cpp
index 6900b247ce8..18d8fa39edd 100644
--- a/llvm/lib/MC/MCELFStreamer.cpp
+++ b/llvm/lib/MC/MCELFStreamer.cpp
@@ -30,7 +30,6 @@
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetAsmBackend.h"
-#include "llvm/Target/TargetAsmInfo.h"
using namespace llvm;
@@ -479,8 +478,14 @@ void MCELFStreamer::EmitInstToData(const MCInst &Inst) {
}
void MCELFStreamer::Finish() {
- if (!FrameInfos.empty())
- MCDwarfFrameEmitter::Emit(*this);
+ // 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);
+ }
for (std::vector<LocalCommon>::const_iterator i = LocalCommons.begin(),
e = LocalCommons.end();
OpenPOWER on IntegriCloud