aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEli Bendersky <eliben@google.com>2013-05-15 22:41:28 +0000
committerEli Bendersky <eliben@google.com>2013-05-15 22:41:28 +0000
commit2aa6db98df22ea328fbf49018cd0473e56a9ec4b (patch)
tree39bdce5890c534782723eefd3b0cbcbf745bf100 /lib
parent0aad08adfda3ff7c4f9c453ba821057b5436c4ef (diff)
downloadexternal_llvm-2aa6db98df22ea328fbf49018cd0473e56a9ec4b.tar.gz
external_llvm-2aa6db98df22ea328fbf49018cd0473e56a9ec4b.tar.bz2
external_llvm-2aa6db98df22ea328fbf49018cd0473e56a9ec4b.zip
Remove dead code.
This method is not being used/tested anywhere. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181943 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/IR/Module.cpp17
1 files changed, 0 insertions, 17 deletions
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());