From cf5ea6c26febd7fdbaba8802f3b81abff6786de2 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 --- llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp b/llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp index a33fef3c8818..6466ad6a22ec 100644 --- a/llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp +++ b/llvm/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++) {