diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-11 09:38:56 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-11 09:38:56 +0000 |
commit | 29a790ba422cfeeea9546b6e76777d98fa73cd67 (patch) | |
tree | e5e6c061931daf684b05e292a2847c3f02837d3c /tools/clang-cc/clang-cc.cpp | |
parent | dc8bbac2f8b78ddef100ae8115fd5a776d1b564c (diff) |
Simplifiy target feature handling by coalescing all the logic into
InitializeCompileOptions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86826 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/clang-cc/clang-cc.cpp')
-rw-r--r-- | tools/clang-cc/clang-cc.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/clang-cc/clang-cc.cpp b/tools/clang-cc/clang-cc.cpp index 2a40656292..fd1153ce87 100644 --- a/tools/clang-cc/clang-cc.cpp +++ b/tools/clang-cc/clang-cc.cpp @@ -1099,12 +1099,9 @@ static void ConstructCompilerInvocation(CompilerInvocation &Opts, Opts.getOutputFile() = OutputFile; - // Compute the feature set, which may effect the language. - ComputeFeatureMap(Target, Opts.getTargetFeatures()); - // Initialize backend options, which may also be used to key some language // options. - InitializeCompileOptions(Opts.getCompileOpts(), Opts.getTargetFeatures()); + InitializeCompileOptions(Opts.getCompileOpts(), Target); // Initialize language options. LangOptions LangInfo; @@ -1113,7 +1110,7 @@ static void ConstructCompilerInvocation(CompilerInvocation &Opts, // code path to make this obvious. if (LK != langkind_ast) InitializeLangOptions(Opts.getLangOpts(), LK, Target, - Opts.getCompileOpts(), Opts.getTargetFeatures()); + Opts.getCompileOpts()); // Initialize the header search options. InitializeHeaderSearchOptions(Opts.getHeaderSearchOpts(), |