aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PIC16
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-07-06 18:07:06 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-07-06 18:07:06 +0000
commitdba7652e45b59ee8920eba8416f4b934b860ad26 (patch)
tree8de95af63cdcd23083bffad81ff55ccfec95d63f /lib/Target/PIC16
parentbe7eabb3a388cb36a9cccdf5ee52ba305273f1de (diff)
downloadexternal_llvm-dba7652e45b59ee8920eba8416f4b934b860ad26.zip
external_llvm-dba7652e45b59ee8920eba8416f4b934b860ad26.tar.gz
external_llvm-dba7652e45b59ee8920eba8416f4b934b860ad26.tar.bz2
pic16 isn't ready to handle llvm.metadata yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74838 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PIC16')
-rw-r--r--lib/Target/PIC16/PIC16AsmPrinter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/PIC16/PIC16AsmPrinter.cpp b/lib/Target/PIC16/PIC16AsmPrinter.cpp
index a33fef3..6466ad6 100644
--- a/lib/Target/PIC16/PIC16AsmPrinter.cpp
+++ b/lib/Target/PIC16/PIC16AsmPrinter.cpp
@@ -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++) {