mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-06 21:27:23 +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:
@@ -32,8 +32,7 @@ using namespace llvm;
|
|||||||
|
|
||||||
Function *ilist_traits<Function>::createSentinel() {
|
Function *ilist_traits<Function>::createSentinel() {
|
||||||
FunctionType *FTy =
|
FunctionType *FTy =
|
||||||
FunctionType::get(Type::VoidTy, std::vector<const Type*>(), false,
|
FunctionType::get(Type::VoidTy, std::vector<const Type*>(), false);
|
||||||
std::vector<FunctionType::ParameterAttributes>() );
|
|
||||||
Function *Ret = new Function(FTy, GlobalValue::ExternalLinkage);
|
Function *Ret = new Function(FTy, GlobalValue::ExternalLinkage);
|
||||||
// This should not be garbage monitored.
|
// This should not be garbage monitored.
|
||||||
LeakDetector::removeGarbageObject(Ret);
|
LeakDetector::removeGarbageObject(Ret);
|
||||||
|
Reference in New Issue
Block a user