summaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-12-17 01:14:52 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-12-17 01:14:52 +0000
commit8f7d12ccfd8feb258bdf4e582592bc00beacc7c6 (patch)
tree9cfa7fc437c2594e922ef79b6f711f2b0a24292f /lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
parent8b99c1e42cff9a55996907901a5ad81a97f24912 (diff)
downloadllvm-8f7d12ccfd8feb258bdf4e582592bc00beacc7c6.tar.gz
llvm-8f7d12ccfd8feb258bdf4e582592bc00beacc7c6.tar.bz2
llvm-8f7d12ccfd8feb258bdf4e582592bc00beacc7c6.tar.xz
Add back the MC bits of 126425. Original patch by Nathan Jeffords. I added the
asm parsing and testcase. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146801 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp b/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
index 605b775502..c166946989 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
@@ -144,9 +144,8 @@ 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 (const char *SecOffDir = MAI->getDwarfSectionOffsetDirective()) {
- // FIXME: MCize.
- OutStreamer.EmitRawText(SecOffDir + Twine(Label->getName()));
+ if (MAI->getDwarfSectionOffsetDirective()) {
+ OutStreamer.EmitCOFFSecRel32(Label);
return;
}