[llvm-commits] [llvm] r77153 - /llvm/trunk/lib/Target/PIC16/PIC16TargetAsmInfo.cpp

Sanjiv Gupta sanjiv.gupta at microchip.com
Sun Jul 26 03:25:24 PDT 2009


Author: sgupta
Date: Sun Jul 26 05:25:01 2009
New Revision: 77153

URL: http://llvm.org/viewvc/llvm-project?rev=77153&view=rev
Log:
Fix the breakage caused by 76950. 
PIC16 has special naming conventions for variables having section names specified via section attribute.

Modified:
    llvm/trunk/lib/Target/PIC16/PIC16TargetAsmInfo.cpp

Modified: llvm/trunk/lib/Target/PIC16/PIC16TargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PIC16/PIC16TargetAsmInfo.cpp?rev=77153&r1=77152&r2=77153&view=diff

==============================================================================
--- llvm/trunk/lib/Target/PIC16/PIC16TargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/PIC16/PIC16TargetAsmInfo.cpp Sun Jul 26 05:25:01 2009
@@ -258,6 +258,9 @@
       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);
       }
     }
   }





More information about the llvm-commits mailing list