Adding getSwiftRevision(). This is to aid cleaning up some lldb code that could use this API.

This commit is contained in:
EMatejska
2016-11-07 00:06:22 -08:00
parent e3428bae13
commit 1fa8dd45bc
2 changed files with 12 additions and 0 deletions

View File

@@ -406,6 +406,14 @@ std::string getSwiftFullVersion(Version effectiveVersion) {
return OS.str();
}
std::string getSwiftRevision() {
#ifdef SWIFT_REVISION
return SWIFT_REVISION;
#else
return "";
#endif
}
} // end namespace version
} // end namespace swift