mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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