Commits

Daniel Dunbar committed fe033971540
[PackageLoading] Factor out ManifestLoader. - This just moves the existing manifest loading logic into a simple class to manage the loading. This is to accomplish two things: o It gives us a place to pass down a resource configuration -- used for finsing the swift compiler path and runtime library path -- without having to plumb that to each call site. This could be global, but this will make it easy to support alternate toolchains in the future. o This gives the loaded a place to manage shared state, e.g. if we want to cache loaded manifest at some point, or if the loader needs to initialize some more expensive state (e.g., to talk to SourceKit, or to initialize a sandbox).