PIC16 has special naming conventions for variables having section names specified via section attribute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77153
91177308-0d34-0410-b5e6-
96231b3b80d8
if (SectName.compare(0, AddrStr.length(), AddrStr) == 0) {
std::string SectAddr = SectName.substr(AddrStr.length());
return CreateSectionForGlobal(GVar, SectAddr);
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);