diff options
author | Eli Bendersky <eliben@google.com> | 2013-05-15 22:41:28 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@google.com> | 2013-05-15 22:41:28 +0000 |
commit | b8cd7a0d7fb24da4f9367b8474c3dfc036c2a04b (patch) | |
tree | 995bef5f27fdf31dbe4265440106da75ad27f823 /llvm/lib/IR/Module.cpp | |
parent | 88e7fddc8c8a9e3ef095db8d342fc27e3e23ac64 (diff) | |
download | bcm5719-llvm-b8cd7a0d7fb24da4f9367b8474c3dfc036c2a04b.tar.gz bcm5719-llvm-b8cd7a0d7fb24da4f9367b8474c3dfc036c2a04b.zip |
Remove dead code.
This method is not being used/tested anywhere.
llvm-svn: 181943
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
-rw-r--r-- | llvm/lib/IR/Module.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/llvm/lib/IR/Module.cpp b/llvm/lib/IR/Module.cpp index 8affcc94696..3f505aa3e09 100644 --- a/llvm/lib/IR/Module.cpp +++ b/llvm/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()); |