mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Remove -l flag from Swift interim driver.
Being able to pass -l to the driver isn't so interesting, and it's an extra field that lives on TranslationUnit for no reason. Just remove it. This doesn't interfere with autolinking, i.e. inferring -l flags based on imported modules. Swift SVN r9241
This commit is contained in:
@@ -458,9 +458,6 @@ public:
|
||||
/// \sa SourceFile
|
||||
class TranslationUnit : public Module {
|
||||
private:
|
||||
/// The list of libraries specified as link-time dependencies at compile time.
|
||||
ArrayRef<LinkLibrary> LinkLibraries;
|
||||
|
||||
/// If non-NULL, an plug-in that should be used when performing external
|
||||
/// lookups.
|
||||
ExternalNameLookup *ExternalLookup = nullptr;
|
||||
@@ -473,14 +470,6 @@ public:
|
||||
: Module(ModuleKind::TranslationUnit, Name, C) {
|
||||
}
|
||||
|
||||
void setLinkLibraries(ArrayRef<LinkLibrary> libs) {
|
||||
assert(LinkLibraries.empty() && "link libraries already set");
|
||||
LinkLibraries = libs;
|
||||
}
|
||||
ArrayRef<LinkLibrary> getLinkLibraries() const {
|
||||
return LinkLibraries;
|
||||
}
|
||||
|
||||
void clearLookupCache();
|
||||
|
||||
void cacheVisibleDecls(SmallVectorImpl<ValueDecl *> &&globals) const;
|
||||
|
||||
Reference in New Issue
Block a user