mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
If tehre are not any line entry then do not try to emit .debug_line section.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120637 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0613516b16
commit
6a13ddbd9b
@ -180,6 +180,9 @@ namespace llvm {
|
||||
bool hasDwarfFiles(void) {
|
||||
return MCDwarfFiles.size() != 0;
|
||||
}
|
||||
bool hasDwarfLines(void) {
|
||||
return MCLineSectionOrder.size() != 0;
|
||||
}
|
||||
|
||||
const std::vector<MCDwarfFile *> &getMCDwarfFiles() {
|
||||
return MCDwarfFiles;
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user