Debug info: Actually encode the Swift version number instead of constant 1.

<rdar://problem/18729762> CU's RuntimeVersion field should have the Swift runtime version number

Swift SVN r23087
This commit is contained in:
Adrian Prantl
2014-11-03 17:48:06 +00:00
parent 679c66255f
commit 801dc3d20e
3 changed files with 9 additions and 3 deletions

View File

@@ -42,6 +42,9 @@ SWIFT_MAKE_VERSION_STRING(SWIFT_VERSION_MAJOR,SWIFT_VERSION_MINOR)
namespace swift {
namespace version {
std::pair<unsigned, unsigned> getSwiftNumericVersion() {
return { SWIFT_VERSION_MAJOR, SWIFT_VERSION_MINOR };
}
std::string getSwiftFullVersion() {
std::string buf;