[deserialization] Change SILLinking to use SILModule for linking instead of performing the linking itself.

This approach will allow us to go back to doing lazy linking if we want
to in the future.

Swift SVN r15498
This commit is contained in:
Michael Gottesman
2014-03-26 08:47:01 +00:00
parent 3d0cf8bbd9
commit 406bc0c19a
4 changed files with 29 additions and 118 deletions

View File

@@ -294,6 +294,12 @@ public:
bool linkFunction(SILFunction *Fun,
LinkingMode LinkAll=LinkingMode::LinkNormal);
/// Link in all Witness Tables in the module.
void linkAllWitnessTables();
/// Link in all VTables in the module.
void linkAllVTables();
/// \brief Return the declaration of a utility function that can,
/// but needn't, be shared between modules.
SILFunction *getOrCreateSharedFunction(SILLocation loc,