diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-08-31 04:36:05 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-08-31 04:36:05 +0000 |
commit | 40ea0eaaa13695c4fc1efa4f1ff767597ad0ca57 (patch) | |
tree | 9eaa65ad985c30929a2503211488627ae59fe297 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | a5770cd1faa52477ffe70c9bea60182a566e35b1 (diff) | |
download | bcm5719-llvm-40ea0eaaa13695c4fc1efa4f1ff767597ad0ca57.tar.gz bcm5719-llvm-40ea0eaaa13695c4fc1efa4f1ff767597ad0ca57.zip |
Make AnalyzerOptions a shared object between CompilerInvocation and
AnalysisManager, allowing the StringMap of configuration values to
be propagated.
llvm-svn: 162978
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 830ab99548a..6bffa1346ac 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -931,7 +931,7 @@ static void TargetOptsToArgs(const TargetOptions &Opts, void CompilerInvocation::toArgs(std::vector<std::string> &Res) const { ToArgsList List(Res); - AnalyzerOptsToArgs(getAnalyzerOpts(), List); + AnalyzerOptsToArgs(*getAnalyzerOpts(), List); CodeGenOptsToArgs(getCodeGenOpts(), List); DependencyOutputOptsToArgs(getDependencyOutputOpts(), List); DiagnosticOptsToArgs(getDiagnosticOpts(), List); @@ -2323,7 +2323,7 @@ bool CompilerInvocation::CreateFromArgs(CompilerInvocation &Res, } } - Success = ParseAnalyzerArgs(Res.getAnalyzerOpts(), *Args, Diags) && Success; + Success = ParseAnalyzerArgs(*Res.getAnalyzerOpts(), *Args, Diags) && Success; Success = ParseMigratorArgs(Res.getMigratorOpts(), *Args) && Success; ParseDependencyOutputArgs(Res.getDependencyOutputOpts(), *Args); Success = ParseDiagnosticArgs(Res.getDiagnosticOpts(), *Args, &Diags) |