Make module loaders owned by the AST context instead of ref-counted.

Also, create the Clang module loader directly rather than indirecting through
a "get constructor" function. It's no longer a valid configuration to not
have a Clang importer.

Swift SVN r16862
This commit is contained in:
Jordan Rose
2014-04-26 00:57:09 +00:00
parent 1dfc037875
commit 0e7bb07b26
9 changed files with 43 additions and 51 deletions

View File

@@ -30,7 +30,7 @@ class NominalTypeDecl;
enum class KnownProtocolKind : uint8_t;
/// \brief Abstract interface that loads named modules into the AST.
class ModuleLoader : public llvm::RefCountedBaseVPTR {
class ModuleLoader {
virtual void anchor();
public: