diff options
author | Cameron Zwarich <zwarich@apple.com> | 2011-02-25 16:30:32 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2011-02-25 16:30:32 +0000 |
commit | f754f50805fee2bb4d461a9b41107122a22cd6f6 (patch) | |
tree | 5242d6f04cd8e1518f95615dde7e088e43023ee3 /lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp | |
parent | 278be783b5068e6f87f16bc9b69a77e0bc958f9f (diff) |
Roll out r126425 and r126450 to see if it fixes the failures on the buildbots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126488 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp b/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp index e7418d294b..98a1bf2f1c 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp @@ -177,8 +177,9 @@ void AsmPrinter::EmitReference(const GlobalValue *GV, unsigned Encoding)const{ void AsmPrinter::EmitSectionOffset(const MCSymbol *Label, const MCSymbol *SectionLabel) const { // On COFF targets, we have to emit the special .secrel32 directive. - if (MAI->getDwarfSectionOffsetDirective()) { - OutStreamer.EmitCOFFSecRel32(Label); + if (const char *SecOffDir = MAI->getDwarfSectionOffsetDirective()) { + // FIXME: MCize. + OutStreamer.EmitRawText(SecOffDir + Twine(Label->getName())); return; } |