summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCAsmStreamer.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-12-02 01:17:51 +0000
committerDevang Patel <dpatel@apple.com>2010-12-02 01:17:51 +0000
commit87b9114f496a6b8877973f73464e89b7428d33bb (patch)
tree303ddd1a46d3c1620d2ba694e21e2d07bab7faf8 /llvm/lib/MC/MCAsmStreamer.cpp
parent4be0bd79a472f01c2310507df3150ecf3b57c88f (diff)
downloadbcm5719-llvm-87b9114f496a6b8877973f73464e89b7428d33bb.tar.gz
bcm5719-llvm-87b9114f496a6b8877973f73464e89b7428d33bb.zip
If tehre are not any line entry then do not try to emit .debug_line section.
llvm-svn: 120637
Diffstat (limited to 'llvm/lib/MC/MCAsmStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCAsmStreamer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCAsmStreamer.cpp b/llvm/lib/MC/MCAsmStreamer.cpp
index c03f969e85f..02b666235e3 100644
--- a/llvm/lib/MC/MCAsmStreamer.cpp
+++ b/llvm/lib/MC/MCAsmStreamer.cpp
@@ -876,7 +876,7 @@ void MCAsmStreamer::EmitRawText(StringRef String) {
void MCAsmStreamer::Finish() {
// Dump out the dwarf file & directory tables and line tables.
- if (getContext().hasDwarfFiles() && TLOF) {
+ if (getContext().hasDwarfFiles() && getContext().hasDwarfLines() && TLOF) {
MCDwarfFileTable::Emit(this, TLOF->getDwarfLineSection(), NULL,
PointerSize);
}
OpenPOWER on IntegriCloud