]> granicus.if.org Git - clang/commitdiff
(llvm up) Update for intrinsic lookup changes.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 4 Feb 2009 21:09:15 +0000 (21:09 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 4 Feb 2009 21:09:15 +0000 (21:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63773 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGBuiltin.cpp

index 9260b11ed34ac9642086ea4bfe794e4d564e7a2e..25812530c8dbb6738767c7ecb3085229fad9ddaf 100644 (file)
@@ -333,12 +333,9 @@ RValue CodeGenFunction::EmitBuiltinExpr(unsigned BuiltinID, const CallExpr *E) {
                         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;