summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commitd3df3d352747f09683c8b9b251e0a40f6ad878e9 (patch)
treea0c354ef3095541349f8ded36b0fc803bfd04be1 /llvm/lib/CodeGen
parentda07b3ad420ef31b50a3c3621c9445a2c15fef45 (diff)
downloadbcm5719-llvm-d3df3d352747f09683c8b9b251e0a40f6ad878e9.tar.gz
bcm5719-llvm-d3df3d352747f09683c8b9b251e0a40f6ad878e9.zip
Add back the MC bits of 126425. Original patch by Nathan Jeffords. I added the
asm parsing and testcase. llvm-svn: 146801
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
index 605b775502b..c1669469899 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud