summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/TargetInfo.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2017-03-22 06:36:09 +0000
committerEric Christopher <echristo@gmail.com>2017-03-22 06:36:09 +0000
commit3646e6289d9fc8678f0b53b466974d6010e3a1b8 (patch)
treeb8372bbd47feae79d3fa2ddbf62a2e2b50c88260 /clang/lib/Basic/TargetInfo.cpp
parent57d8ca72d1a9beaf4ba1e042395a0d110b7629d8 (diff)
downloadbcm5719-llvm-3646e6289d9fc8678f0b53b466974d6010e3a1b8.tar.gz
bcm5719-llvm-3646e6289d9fc8678f0b53b466974d6010e3a1b8.zip
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. llvm-svn: 298487
Diffstat (limited to 'clang/lib/Basic/TargetInfo.cpp')
-rw-r--r--clang/lib/Basic/TargetInfo.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Basic/TargetInfo.cpp b/clang/lib/Basic/TargetInfo.cpp
index b1b01e5f584..e19404dc54c 100644
--- a/clang/lib/Basic/TargetInfo.cpp
+++ b/clang/lib/Basic/TargetInfo.cpp
@@ -282,8 +282,9 @@ bool TargetInfo::isTypeSigned(IntType T) {
/// adjust - Set forced language options.
/// Apply changes to the target information with respect to certain
-/// language options which change the target configuration.
-void TargetInfo::adjust(const LangOptions &Opts) {
+/// language options which change the target configuration and adjust
+/// the language based on the target options where applicable.
+void TargetInfo::adjust(LangOptions &Opts) {
if (Opts.NoBitFieldTypeAlign)
UseBitFieldTypeAlignment = false;
if (Opts.ShortWChar)
OpenPOWER on IntegriCloud