mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-24 14:33:40 +00:00
Fix the breakage caused by 76950.
PIC16 has special naming conventions for variables having section names specified via section attribute. llvm-svn: 77153
This commit is contained in:
parent
4a36d5dcfd
commit
cc8eb579b9
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user