diff options
author | Gabor Greif <ggreif@gmail.com> | 2009-03-01 17:13:15 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2009-03-01 17:13:15 +0000 |
commit | 2fe22159d7e0fe5f668e0a3d4ac482a2c22cbe6e (patch) | |
tree | 4d17d738199b8f07900280d2b4c740e06c4454e5 /lib/VMCore/Function.cpp | |
parent | 4d3afb6592d52b29aa6804ac4ab08f79665ea4a4 (diff) | |
download | external_llvm-2fe22159d7e0fe5f668e0a3d4ac482a2c22cbe6e.zip external_llvm-2fe22159d7e0fe5f668e0a3d4ac482a2c22cbe6e.tar.gz external_llvm-2fe22159d7e0fe5f668e0a3d4ac482a2c22cbe6e.tar.bz2 |
Another sentinel optimization. This one should always
be a win, since almost every interesting function has at least one Argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65778 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r-- | lib/VMCore/Function.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index fefe082..258158f 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -26,13 +26,6 @@ iplist<BasicBlock> &ilist_traits<BasicBlock>::getList(Function *F) { return F->getBasicBlockList(); } -Argument *ilist_traits<Argument>::createSentinel() { - Argument *Ret = new Argument(Type::Int32Ty); - // This should not be garbage monitored. - LeakDetector::removeGarbageObject(Ret); - return Ret; -} - iplist<Argument> &ilist_traits<Argument>::getList(Function *F) { return F->getArgumentList(); } |