pic16 isn't ready to handle llvm.metadata yet.

llvm-svn: 74838
This commit is contained in:
Sanjiv Gupta 2009-07-06 18:07:06 +00:00
parent 7f31824a44
commit cf5ea6c26f
1 changed files with 2 additions and 0 deletions

View 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++) {