[cfe-commits] r63773 - /cfe/trunk/lib/CodeGen/CGBuiltin.cpp
Daniel Dunbar
daniel at zuster.org
Wed Feb 4 13:09:15 PST 2009
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;
More information about the cfe-commits
mailing list