mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add a utility function for checking if a function has a specific semantics tag.
Swift SVN r19655
This commit is contained in:
@@ -182,6 +182,11 @@ public:
|
||||
return SemanticsAttr;
|
||||
}
|
||||
|
||||
/// @returns True if the function has the semantics flag \p Value;
|
||||
bool hasSemanticsString(StringRef Value) const {
|
||||
return SemanticsAttr == Value;
|
||||
}
|
||||
|
||||
/// Initialize the source location of the function.
|
||||
void setLocation(SILLocation L) { Location = L; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user