summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-07-26 10:25:01 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-07-26 10:25:01 +0000
commitfc4d4994ee4e1118d693e4ef1d120173b802ea91 (patch)
treefdfb71c1fb97aed629cfc942b575a7e0ad101604 /llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp
parent6115b39ffdabcf375210bf4d32cbeadaedc0dbf4 (diff)
downloadbcm5719-llvm-fc4d4994ee4e1118d693e4ef1d120173b802ea91.tar.gz
bcm5719-llvm-fc4d4994ee4e1118d693e4ef1d120173b802ea91.zip
Fix the breakage caused by 76950.
PIC16 has special naming conventions for variables having section names specified via section attribute. llvm-svn: 77153
Diffstat (limited to 'llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp')
-rw-r--r--llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp b/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp
index aba1564a056..192ec0803a1 100644
--- a/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp
+++ b/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp
@@ -258,6 +258,9 @@ PIC16TargetAsmInfo::getSpecialCasedSectionGlobals(const GlobalValue *GV,
if (SectName.compare(0, AddrStr.length(), AddrStr) == 0) {
std::string SectAddr = SectName.substr(AddrStr.length());
return CreateSectionForGlobal(GVar, SectAddr);
+ } else {
+ // Create the section specified with section attribute.
+ return CreateSectionForGlobal(GVar);
}
}
}
OpenPOWER on IntegriCloud