fix a bug emitting .secrel32 that I introduced, PR6587, patch
authorChris Lattner <sabre@nondot.org>
Fri, 12 Mar 2010 18:10:35 +0000 (18:10 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 12 Mar 2010 18:10:35 +0000 (18:10 +0000)
by A.Mazur!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98360 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfPrinter.cpp

index ed4772783d3f1781fe9f65166e0ec53bfd99cb06..f55e4fe8e6c277083195ecd4302c546e86e31ae0 100644 (file)
@@ -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*/);
   }