Add a utility function for checking if a function has a specific semantics tag.

Swift SVN r19655
This commit is contained in:
Nadav Rotem
2014-07-08 00:38:15 +00:00
parent 4fd20e7064
commit f09df5764d

View File

@@ -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; }