mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
Repace SmallPtrSet with SmallPtrSetImpl in function arguments to avoid needing to mention the size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216158 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -81,8 +81,8 @@ namespace {
|
||||
CallGraphNode *PromoteArguments(CallGraphNode *CGN);
|
||||
bool isSafeToPromoteArgument(Argument *Arg, bool isByVal) const;
|
||||
CallGraphNode *DoPromotion(Function *F,
|
||||
SmallPtrSet<Argument*, 8> &ArgsToPromote,
|
||||
SmallPtrSet<Argument*, 8> &ByValArgsToTransform);
|
||||
SmallPtrSetImpl<Argument*> &ArgsToPromote,
|
||||
SmallPtrSetImpl<Argument*> &ByValArgsToTransform);
|
||||
|
||||
using llvm::Pass::doInitialization;
|
||||
bool doInitialization(CallGraph &CG) override;
|
||||
@@ -495,8 +495,8 @@ bool ArgPromotion::isSafeToPromoteArgument(Argument *Arg,
|
||||
/// arguments, and returns the new function. At this point, we know that it's
|
||||
/// safe to do so.
|
||||
CallGraphNode *ArgPromotion::DoPromotion(Function *F,
|
||||
SmallPtrSet<Argument*, 8> &ArgsToPromote,
|
||||
SmallPtrSet<Argument*, 8> &ByValArgsToTransform) {
|
||||
SmallPtrSetImpl<Argument*> &ArgsToPromote,
|
||||
SmallPtrSetImpl<Argument*> &ByValArgsToTransform) {
|
||||
|
||||
// Start by computing a new prototype for the function, which is the same as
|
||||
// the old function, but has modified arguments.
|
||||
|
||||
Reference in New Issue
Block a user