diff options
author | Eric Christopher <echristo@gmail.com> | 2017-03-22 06:36:09 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2017-03-22 06:36:09 +0000 |
commit | 9a1877f04c1a225ff4acae5524d18be91f7fba3f (patch) | |
tree | 4af96fba0f7c51d2efd0ec27d632677c5c7160d0 /include/clang/Basic/TargetInfo.h | |
parent | bdf93f3e0295240ca9711f3e2c53f7e43deb9645 (diff) |
Move setting of LangOpts based on target flags out of CompilerInstance
and into TargetInfo::adjust so that it gets called in more places
throughout the compiler (AST serialization in particular).
Should fix PPC modules after removing of faltivec.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@298487 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/TargetInfo.h')
-rw-r--r-- | include/clang/Basic/TargetInfo.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/Basic/TargetInfo.h b/include/clang/Basic/TargetInfo.h index 46db895489..39c5e2ec40 100644 --- a/include/clang/Basic/TargetInfo.h +++ b/include/clang/Basic/TargetInfo.h @@ -823,8 +823,9 @@ public: /// \brief Set forced language options. /// /// Apply changes to the target information with respect to certain - /// language options which change the target configuration. - virtual void adjust(const LangOptions &Opts); + /// language options which change the target configuration and adjust + /// the language based on the target options where applicable. + virtual void adjust(LangOptions &Opts); /// \brief Adjust target options based on codegen options. virtual void adjustTargetOptions(const CodeGenOptions &CGOpts, |