summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/FrontendActions.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-01-30 06:01:29 +0000
committerDouglas Gregor <dgregor@apple.com>2012-01-30 06:01:29 +0000
commit899292827456532bc66219f9d778595c57614f77 (patch)
treefa9971f4bad44e176c13d13bc80d68f4dce77e25 /clang/lib/Frontend/FrontendActions.cpp
parent829400bb22fc72d291fd3e5057b0880d7b09aafa (diff)
downloadbcm5719-llvm-899292827456532bc66219f9d778595c57614f77.tar.gz
bcm5719-llvm-899292827456532bc66219f9d778595c57614f77.zip
Thread a TargetInfo through to the module map; we'll need it for
target-specific module requirements. llvm-svn: 149224
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
-rw-r--r--clang/lib/Frontend/FrontendActions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp
index 669fe4acb37..c0302329c1e 100644
--- a/clang/lib/Frontend/FrontendActions.cpp
+++ b/clang/lib/Frontend/FrontendActions.cpp
@@ -237,7 +237,7 @@ bool GenerateModuleAction::BeginSourceFileAction(CompilerInstance &CI,
// Check whether we can build this module at all.
StringRef Feature;
- if (!Module->isAvailable(CI.getLangOpts(), Feature)) {
+ if (!Module->isAvailable(CI.getLangOpts(), CI.getTarget(), Feature)) {
CI.getDiagnostics().Report(diag::err_module_unavailable)
<< Module->getFullModuleName()
<< Feature;
OpenPOWER on IntegriCloud