mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 21:20:37 +00:00
For PR1146:
Simplify construction of FunctionType to use default arguments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35810 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ac66f4241d
commit
8129a3921e
@ -32,8 +32,7 @@ using namespace llvm;
|
||||
|
||||
Function *ilist_traits<Function>::createSentinel() {
|
||||
FunctionType *FTy =
|
||||
FunctionType::get(Type::VoidTy, std::vector<const Type*>(), false,
|
||||
std::vector<FunctionType::ParameterAttributes>() );
|
||||
FunctionType::get(Type::VoidTy, std::vector<const Type*>(), false);
|
||||
Function *Ret = new Function(FTy, GlobalValue::ExternalLinkage);
|
||||
// This should not be garbage monitored.
|
||||
LeakDetector::removeGarbageObject(Ret);
|
||||
|
Loading…
Reference in New Issue
Block a user