pic16 isn't ready to handle llvm.metadata yet.
authorSanjiv Gupta <sanjiv.gupta@microchip.com>
Mon, 6 Jul 2009 18:07:06 +0000 (18:07 +0000)
committerSanjiv Gupta <sanjiv.gupta@microchip.com>
Mon, 6 Jul 2009 18:07:06 +0000 (18:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74838 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PIC16/PIC16AsmPrinter.cpp

index a33fef3c88186962c8f103c4ee185fea48c88e5d..6466ad6a22ec4561e9459cf8ea0a2cdb4a4e4df3 100644 (file)
@@ -348,6 +348,8 @@ void PIC16AsmPrinter::EmitIData (Module &M) {
   std::vector <PIC16Section *>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<const GlobalVariable*> Items = IDATASections[i]->Items;
     for (unsigned j = 0; j < Items.size(); j++) {