[cfe-commits] r63814 - /cfe/trunk/lib/CodeGen/CGBuiltin.cpp
Dale Johannesen
dalej at apple.com
Wed Feb 4 17:50:47 PST 2009
Author: johannes
Date: Wed Feb 4 19:50:47 2009
New Revision: 63814
URL: http://llvm.org/viewvc/llvm-project?rev=63814&view=rev
Log:
Reapply Daniel's patch to match up with llvm 63765.
Untested, Daniel or Nate please review.
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=63814&r1=63813&r2=63814&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBuiltin.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBuiltin.cpp Wed Feb 4 19:50:47 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;
More information about the cfe-commits
mailing list