diff options
author | Devang Patel <dpatel@apple.com> | 2010-12-03 00:10:48 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-12-03 00:10:48 +0000 |
commit | 5113cdbfff7df4c7a79a92e5aa971126254202c6 (patch) | |
tree | bb4a12f7f5324158308fbb6b3db9b7636ad2a2aa /include | |
parent | 3fda44f276647bc43c283268907bac605a8f7eb5 (diff) | |
download | external_llvm-5113cdbfff7df4c7a79a92e5aa971126254202c6.zip external_llvm-5113cdbfff7df4c7a79a92e5aa971126254202c6.tar.gz external_llvm-5113cdbfff7df4c7a79a92e5aa971126254202c6.tar.bz2 |
It may not be an option to skip .debug_line if there are file reference in already emitted debug info. So, for now, emit dummy line table entry to make older linker and assemblers happy. This is not a new behavior, original AsmPrinter emitted similar line table entries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120760 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCContext.h | 3 | ||||
-rw-r--r-- | include/llvm/MC/MCDwarf.h | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/MC/MCContext.h b/include/llvm/MC/MCContext.h index 575bc3b..7968e1e 100644 --- a/include/llvm/MC/MCContext.h +++ b/include/llvm/MC/MCContext.h @@ -180,9 +180,6 @@ namespace llvm { bool hasDwarfFiles() const { return !MCDwarfFiles.empty(); } - bool hasDwarfLines() const { - return !MCLineSectionOrder.empty(); - } const std::vector<MCDwarfFile *> &getMCDwarfFiles() { return MCDwarfFiles; diff --git a/include/llvm/MC/MCDwarf.h b/include/llvm/MC/MCDwarf.h index 52371f6..0c0a22e 100644 --- a/include/llvm/MC/MCDwarf.h +++ b/include/llvm/MC/MCDwarf.h @@ -209,7 +209,8 @@ namespace llvm { // This emits the Dwarf file and the line tables. // static void Emit(MCStreamer *MCOS, const MCSection *DwarfLineSection, - MCSectionData *DLS, int PointerSize); + MCSectionData *DLS, int PointerSize, + const MCSection *TextSection = NULL); }; class MCDwarfLineAddr { |