Add a convenience function hasName in SILFunction to be used in the debugger.

This is a replacement for getName().equals("..."), which is no longer callable from the debugger with the latest llvm changes.



Swift SVN r32895
This commit is contained in:
Erik Eckstein
2015-10-26 21:52:37 +00:00
parent 20bcd65cd7
commit e5f6eb3671
3 changed files with 13 additions and 4 deletions

View File

@@ -469,6 +469,10 @@ bool SILFunction::hasSelfMetadataParam() const {
return true;
}
bool SILFunction::hasName(const char *Name) const {
return getName() == Name;
}
/// Helper method which returns true if the linkage of the SILFunction
/// indicates that the objects definition might be required outside the
/// current SILModule.