| Index: lib/CodeGen/CGBuiltin.cpp
|
| ===================================================================
|
| --- lib/CodeGen/CGBuiltin.cpp (revision 138929)
|
| +++ lib/CodeGen/CGBuiltin.cpp (working copy)
|
| @@ -1188,6 +1188,7 @@
|
|
|
| Value *CodeGenFunction::EmitARMBuiltinExpr(unsigned BuiltinID,
|
| const CallExpr *E) {
|
| +#if defined(TARGET_ENABLED_ARM)
|
| if (BuiltinID == ARM::BI__clear_cache) {
|
| const FunctionDecl *FD = E->getDirectCallee();
|
| // Oddly people write this call without args on occasion and gcc accepts
|
| @@ -1918,6 +1919,10 @@
|
| return SV;
|
| }
|
| }
|
| +#else
|
| + assert(0 && "EmitARMBuiltinExpr w/out TARGET_ENABLED_ARM defined");
|
| +#endif // TARGET_ENABLED_ARM
|
| + return 0;
|
| }
|
|
|
| llvm::Value *CodeGenFunction::
|
| @@ -1949,6 +1954,7 @@
|
|
|
| Value *CodeGenFunction::EmitX86BuiltinExpr(unsigned BuiltinID,
|
| const CallExpr *E) {
|
| +#if defined(TARGET_ENABLED_X86)
|
| SmallVector<Value*, 4> Ops;
|
|
|
| // Find out if any arguments are required to be integer constant expressions.
|
| @@ -2348,10 +2354,15 @@
|
| return Builder.CreateCall(F, Ops, name);
|
| }
|
| }
|
| +#else
|
| + assert(0 && "EmitX86BuiltinExpr w/out TARGET_ENABLED_X86 defined!");
|
| +#endif // defined(TARGET_ENABLED_X86)
|
| + return 0;
|
| }
|
|
|
| Value *CodeGenFunction::EmitPPCBuiltinExpr(unsigned BuiltinID,
|
| const CallExpr *E) {
|
| +#if defined(TARGET_ENABLED_POWERPC)
|
| SmallVector<Value*, 4> Ops;
|
|
|
| for (unsigned i = 0, e = E->getNumArgs(); i != e; i++)
|
| @@ -2437,5 +2448,9 @@
|
| return Builder.CreateCall(F, Ops, "");
|
| }
|
| }
|
| +#else
|
| + assert(0 && "EmitPPCBuiltinExpr w/out TARGET_ENABLED_POWERPC defined!");
|
| +#endif // TARGET_ENABLED_POWERPC
|
| +
|
| return 0;
|
| }
|
|
|