added swift upgrade functions

Change-Id: I0508bfcd11cdfa2b78c786241c5df4cb4915367f
Merge "added swift upgrade functions"