aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-12 18:10:35 +0000
committerChris Lattner <sabre@nondot.org>2010-03-12 18:10:35 +0000
commit3317849de1728ea522a06982d08099a86c24c006 (patch)
tree9bda9501d2258ba0d0538309d365314167bf96a5 /lib/CodeGen/AsmPrinter
parent32706b7fe3655ff4c99a5f5dac0e49e2d9c22f97 (diff)
downloadexternal_llvm-3317849de1728ea522a06982d08099a86c24c006.zip
external_llvm-3317849de1728ea522a06982d08099a86c24c006.tar.gz
external_llvm-3317849de1728ea522a06982d08099a86c24c006.tar.bz2
fix a bug emitting .secrel32 that I introduced, PR6587, patch
by A.Mazur! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98360 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfPrinter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
index ed47727..f55e4fe 100644
--- a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
@@ -225,10 +225,11 @@ void DwarfPrinter::EmitSectionOffset(const MCSymbol *Label,
return EmitDifference(Label, Section, IsSmall);
// On COFF targets, we have to emit the weird .secrel32 directive.
- if (const char *SecOffDir = MAI->getDwarfSectionOffsetDirective())
+ if (const char *SecOffDir = MAI->getDwarfSectionOffsetDirective()) {
// FIXME: MCize.
Asm->O << SecOffDir << Label->getName();
- else {
+ Asm->OutStreamer.AddBlankLine();
+ } else {
unsigned Size = IsSmall ? 4 : TD->getPointerSize();
Asm->OutStreamer.EmitSymbolValue(Label, Size, 0/*AddrSpace*/);
}