mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[sil] Use SILNodes.def to define ARGKIND##ArrayRef instead of hard coding names.
I also changed all of the places that vended these to use SILNodes.def as well so that when new argument kinds are added, things just work.
This commit is contained in:
@@ -26,15 +26,12 @@
|
||||
namespace swift {
|
||||
|
||||
class SILArgument;
|
||||
class SILPhiArgument;
|
||||
class SILFunctionArgument;
|
||||
|
||||
using PhiArgumentArrayRef =
|
||||
TransformRange<ArrayRef<SILArgument *>, SILPhiArgument *(*)(SILArgument *)>;
|
||||
|
||||
using FunctionArgumentArrayRef =
|
||||
TransformRange<ArrayRef<SILArgument *>,
|
||||
SILFunctionArgument *(*)(SILArgument *)>;
|
||||
#define ARGUMENT(NAME, PARENT) \
|
||||
class NAME; \
|
||||
using NAME##ArrayRef = \
|
||||
TransformRange<ArrayRef<SILArgument *>, NAME *(*)(SILArgument *)>;
|
||||
#include "swift/SIL/SILNodes.def"
|
||||
|
||||
} // namespace swift
|
||||
|
||||
|
||||
Reference in New Issue
Block a user