diff options
-rw-r--r-- | include/llvm/IR/Module.h | 4 | ||||
-rw-r--r-- | lib/IR/Module.cpp | 17 |
2 files changed, 0 insertions, 21 deletions
diff --git a/include/llvm/IR/Module.h b/include/llvm/IR/Module.h index cb500ffe7c..d414405818 100644 --- a/include/llvm/IR/Module.h +++ b/include/llvm/IR/Module.h @@ -340,10 +340,6 @@ public: Constant *getOrInsertFunction(StringRef Name, Type *RetTy, ...) END_WITH_NULL; - Constant *getOrInsertTargetIntrinsic(StringRef Name, - FunctionType *Ty, - AttributeSet AttributeList); - /// getFunction - Look up the specified function in the module symbol table. /// If it does not exist, return null. Function *getFunction(StringRef Name) const; diff --git a/lib/IR/Module.cpp b/lib/IR/Module.cpp index 8affcc9469..3f505aa3e0 100644 --- a/lib/IR/Module.cpp +++ b/lib/IR/Module.cpp @@ -168,23 +168,6 @@ Constant *Module::getOrInsertFunction(StringRef Name, return F; } -Constant *Module::getOrInsertTargetIntrinsic(StringRef Name, - FunctionType *Ty, - AttributeSet AttributeList) { - // See if we have a definition for the specified function already. - GlobalValue *F = getNamedValue(Name); - if (F == 0) { - // Nope, add it - Function *New = Function::Create(Ty, GlobalVariable::ExternalLinkage, Name); - New->setAttributes(AttributeList); - FunctionList.push_back(New); - return New; // Return the new prototype. - } - - // Otherwise, we just found the existing function or a prototype. - return F; -} - Constant *Module::getOrInsertFunction(StringRef Name, FunctionType *Ty) { return getOrInsertFunction(Name, Ty, AttributeSet()); |