summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-07-06 05:14:24 +0000
committerAlp Toker <alp@nuanti.com>2014-07-06 05:14:24 +0000
commit74437975c410b5a1ed1ae8302b9bf4c44b8fac44 (patch)
tree0afc475bd6d7654b10e264951855fadf1203b1bd /clang/lib/Frontend/CompilerInstance.cpp
parent069736222b93ff74a0fa0efdf454c31e07dd9696 (diff)
downloadbcm5719-llvm-74437975c410b5a1ed1ae8302b9bf4c44b8fac44.tar.gz
bcm5719-llvm-74437975c410b5a1ed1ae8302b9bf4c44b8fac44.zip
Constify a read-only parameter and give function a better name
This makes it clear that TargetInfo doesn't capture the LangOptions object, rather uses it to apply adjustments. llvm-svn: 212386
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index 3b69fa27912..da663fe9be2 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -720,7 +720,7 @@ bool CompilerInstance::ExecuteAction(FrontendAction &Act) {
//
// FIXME: We shouldn't need to do this, the target should be immutable once
// created. This complexity should be lifted elsewhere.
- getTarget().setForcedLangOptions(getLangOpts());
+ getTarget().adjust(getLangOpts());
// rewriter project will change target built-in bool type from its default.
if (getFrontendOpts().ProgramAction == frontend::RewriteObjC)
OpenPOWER on IntegriCloud