From fabfde8fe18713b53f48f040848c888806470e1a Mon Sep 17 00:00:00 2001 From: Sanjiv Gupta Date: Mon, 6 Jul 2009 18:07:06 +0000 Subject: [PATCH] pic16 isn't ready to handle llvm.metadata yet. llvm-svn: 74838 --- lib/Target/PIC16/PIC16AsmPrinter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Target/PIC16/PIC16AsmPrinter.cpp b/lib/Target/PIC16/PIC16AsmPrinter.cpp index a33fef3c881..6466ad6a22e 100644 --- a/lib/Target/PIC16/PIC16AsmPrinter.cpp +++ b/lib/Target/PIC16/PIC16AsmPrinter.cpp @@ -348,6 +348,8 @@ void PIC16AsmPrinter::EmitIData (Module &M) { std::vector IDATASections = PTAI->IDATASections; for (unsigned i = 0; i < IDATASections.size(); i++) { O << "\n"; + if (IDATASections[i]->S_->getName().find("llvm.") != std::string::npos) + continue; SwitchToSection(IDATASections[i]->S_); std::vector Items = IDATASections[i]->Items; for (unsigned j = 0; j < Items.size(); j++) {