From: David Blaikie Date: Mon, 18 May 2015 22:40:13 +0000 (+0000) Subject: Revert "[opaque pointer type] Provide a convenience for IRBuilder::CreateCall that... X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=ff4ab4462696d96a2272c9d928362fc3df219488 Revert "[opaque pointer type] Provide a convenience for IRBuilder::CreateCall that accepts a Function without needing to take an explicit callee Type" Creates ambiguity in Clang callers. Reverting while I figure it out. This reverts commit r237627. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237629 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/IRBuilder.h b/include/llvm/IR/IRBuilder.h index c5481fb54a1..730cb697100 100644 --- a/include/llvm/IR/IRBuilder.h +++ b/include/llvm/IR/IRBuilder.h @@ -21,7 +21,6 @@ #include "llvm/IR/BasicBlock.h" #include "llvm/IR/ConstantFolder.h" #include "llvm/IR/DataLayout.h" -#include "llvm/IR/Function.h" #include "llvm/IR/GlobalVariable.h" #include "llvm/IR/Instructions.h" #include "llvm/IR/LLVMContext.h" @@ -1467,12 +1466,6 @@ public: return Insert(CallInst::Create(Callee, Args), Name); } - CallInst *CreateCall(Function *Callee, ArrayRef Args, - const Twine &Name = "") { - return Insert(CallInst::Create(Callee->getFunctionType(), Callee, Args), - Name); - } - Value *CreateSelect(Value *C, Value *True, Value *False, const Twine &Name = "") { if (Constant *CC = dyn_cast(C))