From 621c3512a3cfae62aaface23734936fc3a440f11 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Thu, 5 Feb 2009 01:50:47 +0000 Subject: [PATCH] Reapply Daniel's patch to match up with llvm 63765. Untested, Daniel or Nate please review. llvm-svn: 63814 --- clang/lib/CodeGen/CGBuiltin.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index 9260b11ed34a..a9a258c7d884 100644 --- a/clang/lib/CodeGen/CGBuiltin.cpp +++ b/clang/lib/CodeGen/CGBuiltin.cpp @@ -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 Args;