mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
simplify code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157555 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -188,8 +188,7 @@ Constant *Module::getOrInsertTargetIntrinsic(StringRef Name,
|
|||||||
|
|
||||||
Constant *Module::getOrInsertFunction(StringRef Name,
|
Constant *Module::getOrInsertFunction(StringRef Name,
|
||||||
FunctionType *Ty) {
|
FunctionType *Ty) {
|
||||||
AttrListPtr AttributeList = AttrListPtr::get((AttributeWithIndex *)0, 0);
|
return getOrInsertFunction(Name, Ty, AttrListPtr());
|
||||||
return getOrInsertFunction(Name, Ty, AttributeList);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// getOrInsertFunction - Look up the specified function in the module symbol
|
// getOrInsertFunction - Look up the specified function in the module symbol
|
||||||
@@ -231,7 +230,7 @@ Constant *Module::getOrInsertFunction(StringRef Name,
|
|||||||
// Build the function type and chain to the other getOrInsertFunction...
|
// Build the function type and chain to the other getOrInsertFunction...
|
||||||
return getOrInsertFunction(Name,
|
return getOrInsertFunction(Name,
|
||||||
FunctionType::get(RetTy, ArgTys, false),
|
FunctionType::get(RetTy, ArgTys, false),
|
||||||
AttrListPtr::get((AttributeWithIndex *)0, 0));
|
AttrListPtr());
|
||||||
}
|
}
|
||||||
|
|
||||||
// getFunction - Look up the specified function in the module symbol table.
|
// getFunction - Look up the specified function in the module symbol table.
|
||||||
|
Reference in New Issue
Block a user