git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120637
91177308-0d34-0410-b5e6-
96231b3b80d8
bool hasDwarfFiles(void) {
return MCDwarfFiles.size() != 0;
}
+ bool hasDwarfLines(void) {
+ return MCLineSectionOrder.size() != 0;
+ }
const std::vector<MCDwarfFile *> &getMCDwarfFiles() {
return MCDwarfFiles;
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);
}