diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-01-30 06:01:29 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-01-30 06:01:29 +0000 |
commit | dc58aa71026cce539ca9b5c2c52cc4efc7bd77fe (patch) | |
tree | 6ced169a86aa0072e25c83227aa56b7dc75199e1 /include/clang/Basic/Module.h | |
parent | add5adb9aa5facc1cd170fc9dacbd58cde028025 (diff) |
Thread a TargetInfo through to the module map; we'll need it for
target-specific module requirements.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149224 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/Module.h')
-rw-r--r-- | include/clang/Basic/Module.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/clang/Basic/Module.h b/include/clang/Basic/Module.h index e75f43e0e9..82dbd5b0c0 100644 --- a/include/clang/Basic/Module.h +++ b/include/clang/Basic/Module.h @@ -33,6 +33,7 @@ namespace clang { class DirectoryEntry; class FileEntry; class LangOptions; +class TargetInfo; /// \brief Describes the name of a module. typedef llvm::SmallVector<std::pair<std::string, SourceLocation>, 2> @@ -178,10 +179,14 @@ public: /// \param LangOpts The language options used for the current /// translation unit. /// + /// \param Target The target options used for the current translation unit. + /// /// \param Feature If this module is unavailable, this parameter /// will be set to one of the features that is required for use of /// this module (but is not available). - bool isAvailable(const LangOptions &LangOpts, StringRef &Feature) const; + bool isAvailable(const LangOptions &LangOpts, + const TargetInfo &Target, + StringRef &Feature) const; /// \brief Determine whether this module is a submodule. bool isSubModule() const { return Parent != 0; } @@ -246,7 +251,11 @@ public: /// /// \param LangOpts The set of language options that will be used to /// evaluate the availability of this feature. - void addRequirement(StringRef Feature, const LangOptions &LangOpts); + /// + /// \param Target The target options that will be used to evaluate the + /// availability of this feature. + void addRequirement(StringRef Feature, const LangOptions &LangOpts, + const TargetInfo &Target); /// \brief Find the submodule with the given name. /// |