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

Chris Lattner clattner at apple.com
Sun Jul 26 11:07:31 PDT 2009


On Jul 26, 2009, at 3:25 AM, Sanjiv Gupta wrote:

> 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.

Testcase??

-Chris

>
> 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);
>       }
>     }
>   }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list