[cfe-commits] r63773 - /cfe/trunk/lib/CodeGen/CGBuiltin.cpp

Nate Begeman natebegeman at me.com
Wed Feb 4 13:22:15 PST 2009


Thanks Daniel!

On Feb 4, 2009, at 1:09 PM, Daniel Dunbar wrote:

> Author: ddunbar
> Date: Wed Feb  4 15:09:15 2009
> New Revision: 63773
>
> URL: http://llvm.org/viewvc/llvm-project?rev=63773&view=rev
> Log:
> (llvm up) Update for intrinsic lookup changes.
>
> Modified:
>    cfe/trunk/lib/CodeGen/CGBuiltin.cpp
>
> Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBuiltin.cpp?rev=63773&r1=63772&r2=63773&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- cfe/trunk/lib/CodeGen/CGBuiltin.cpp (original)
> +++ cfe/trunk/lib/CodeGen/CGBuiltin.cpp Wed Feb  4 15:09:15 2009
> @@ -333,12 +333,9 @@
>                         E->arg_end());
>
>   // See if we have a target specific intrinsic.
> -  Intrinsic::ID IntrinsicID;
> -  const char *TargetPrefix = Target.getTargetPrefix();
> -  const char *BuiltinName = getContext().BuiltinInfo.GetName 
> (BuiltinID);
> -#define GET_LLVM_INTRINSIC_FOR_GCC_BUILTIN
> -#include "llvm/Intrinsics.gen"
> -#undef GET_LLVM_INTRINSIC_FOR_GCC_BUILTIN
> +  const char *Name = getContext().BuiltinInfo.GetName(BuiltinID);
> +  Intrinsic::ID IntrinsicID =
> +    Intrinsic::getIntrinsicForGCCBuiltin(Target.getTargetPrefix(),  
> Name);
>
>   if (IntrinsicID != Intrinsic::not_intrinsic) {
>     SmallVector<Value*, 16> Args;
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list