diff options
author | Gabor Greif <ggreif@gmail.com> | 2009-03-27 22:28:33 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2009-03-27 22:28:33 +0000 |
commit | 5c70e915b2edd3184e74e87421df9b4494f1da0f (patch) | |
tree | 58f65fd749589ee7ae6d8c308a016c221effdd79 /lib/VMCore | |
parent | a1582f3e6f48e752b04075ce16bf052ba2ca169f (diff) | |
download | external_llvm-5c70e915b2edd3184e74e87421df9b4494f1da0f.zip external_llvm-5c70e915b2edd3184e74e87421df9b4494f1da0f.tar.gz external_llvm-5c70e915b2edd3184e74e87421df9b4494f1da0f.tar.bz2 |
"ghostify" the ilist<Function> sentinel
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67872 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Module.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/VMCore/Module.cpp b/lib/VMCore/Module.cpp index 25d297a..a598005 100644 --- a/lib/VMCore/Module.cpp +++ b/lib/VMCore/Module.cpp @@ -29,14 +29,6 @@ using namespace llvm; // Methods to implement the globals and functions lists. // -Function *ilist_traits<Function>::createSentinel() { - FunctionType *FTy = - FunctionType::get(Type::VoidTy, std::vector<const Type*>(), false); - Function *Ret = Function::Create(FTy, GlobalValue::ExternalLinkage); - // This should not be garbage monitored. - LeakDetector::removeGarbageObject(Ret); - return Ret; -} GlobalVariable *ilist_traits<GlobalVariable>::createSentinel() { GlobalVariable *Ret = new GlobalVariable(Type::Int32Ty, false, GlobalValue::ExternalLinkage); |