diff options
author | Devang Patel <dpatel@apple.com> | 2010-12-02 01:17:51 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-12-02 01:17:51 +0000 |
commit | 6a13ddbd9b2159303996db44db6045730d0fe479 (patch) | |
tree | 349c2be3cf78d25af2b0b55f6f0511dc8e0ede70 /include/llvm/MC/MCContext.h | |
parent | 0613516b16466a92c68d60734801221506c85e86 (diff) | |
download | external_llvm-6a13ddbd9b2159303996db44db6045730d0fe479.zip external_llvm-6a13ddbd9b2159303996db44db6045730d0fe479.tar.gz external_llvm-6a13ddbd9b2159303996db44db6045730d0fe479.tar.bz2 |
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
Diffstat (limited to 'include/llvm/MC/MCContext.h')
-rw-r--r-- | include/llvm/MC/MCContext.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/MC/MCContext.h b/include/llvm/MC/MCContext.h index ae502ba..60d5c0f 100644 --- a/include/llvm/MC/MCContext.h +++ b/include/llvm/MC/MCContext.h @@ -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; |