Commits

Michael Gottesman committed bffbc8f92f8
Create a map from SILFunction -> SILDeclRef if a SILDeclRef was used to create the function. The two ways functions are created currently is via the two SILModule::getOrCreateFunction(). One of the methods, takes in a raw mangled name and uses that to create the function. The other takes in a SILDeclRef to generate the mangled name. Most function emission (besides some thunk creation functions) goes through the latter. For now we update the map there. This is ok, since this map will only be used to provide extra verification that guaranteed self is occuring everywhere that it is supposed to (since constructors and destructors still have @owned self). Swift SVN r27240