[llvm-commits] [llvm] r76665 - /llvm/trunk/lib/Target/XCore/XCoreTargetAsmInfo.cpp

Dan Gohman gohman at apple.com
Tue Jul 21 16:11:47 PDT 2009


On Jul 21, 2009, at 3:37 PM, Chris Lattner wrote:


> Author: lattner
> Date: Tue Jul 21 17:37:38 2009
> New Revision: 76665
>
> URL: http://llvm.org/viewvc/llvm-project?rev=76665&view=rev
> Log:
> if Xcore doesn't support TLS, it doesn't have to worry about thread  
> local LLVM IR, it should be rejected by a front-end.

An assert would be appropriate here then, so that it doesn't silently
discard the TLS flag if the front-end fails to reject it.

Dan

>
> Modified:
>    llvm/trunk/lib/Target/XCore/XCoreTargetAsmInfo.cpp
>
> Modified: llvm/trunk/lib/Target/XCore/XCoreTargetAsmInfo.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/XCore/XCoreTargetAsmInfo.cpp?rev=76665&r1=76664&r2=76665&view=diff
>
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> ======================================================================
> --- llvm/trunk/lib/Target/XCore/XCoreTargetAsmInfo.cpp (original)
> +++ llvm/trunk/lib/Target/XCore/XCoreTargetAsmInfo.cpp Tue Jul 21  
> 17:37:38 2009
> @@ -72,7 +72,7 @@
> SectionFlagsForGlobal(const GlobalValue *GV, const char* Name) const {
>   unsigned Flags = ELFTargetAsmInfo::SectionFlagsForGlobal(GV, Name);
>   // Mask out unsupported flags
> -  Flags &= ~(SectionFlags::Small | SectionFlags::TLS);
> +  Flags &= ~SectionFlags::Small;
>
>   // Set CP / DP relative flags
>   if (GV) {
>
>
> _______________________________________________
> 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