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 | d257f7d96b414682834f1eb5aa4d9ea00f6761be (patch) | |
tree | 58f65fd749589ee7ae6d8c308a016c221effdd79 /lib/VMCore/Module.cpp | |
parent | 5c1f715d4b68d4adb54fd0bf37c099039d6849d3 (diff) |
"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/Module.cpp')
-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 25d297a03e..a598005e2a 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); |