X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=lib%2FMC%2FMCELFStreamer.cpp;h=6900b247ce812de911c89bc058a98e9f5daf0e86;hb=1c952b9cc98e84b28f68f0f6cf11197263f89863;hp=18d8fa39edd4a8059bf84417824c349a8fe4adeb;hpb=29012319cd1a6dee716c3149ead614a8271f7338;p=android-x86%2Fexternal-llvm.git diff --git a/lib/MC/MCELFStreamer.cpp b/lib/MC/MCELFStreamer.cpp index 18d8fa39edd..6900b247ce8 100644 --- a/lib/MC/MCELFStreamer.cpp +++ b/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::const_iterator i = LocalCommons.begin(), e = LocalCommons.end();