diff options
| author | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-07-26 10:25:01 +0000 |
|---|---|---|
| committer | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-07-26 10:25:01 +0000 |
| commit | f9474ca92802228bb792d92dbeb4ef5ba7ecc203 (patch) | |
| tree | ac6bbdf3b30f256113ca5f3bae7f6fd3fcba91ad /lib/Target | |
| parent | 460f656475738d1a95a6be95346908ce1597df25 (diff) | |
Fix the breakage caused by 76950.
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
Diffstat (limited to 'lib/Target')
| -rw-r--r-- | lib/Target/PIC16/PIC16TargetAsmInfo.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/PIC16/PIC16TargetAsmInfo.cpp b/lib/Target/PIC16/PIC16TargetAsmInfo.cpp index aba1564a05..192ec0803a 100644 --- a/lib/Target/PIC16/PIC16TargetAsmInfo.cpp +++ b/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); } } } |
