mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user