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 | 45796b10d11869e86c6b85e24df165410536b313 (patch) | |
tree | 3b6ee0f5c3fba548a8c99f39eeb5ccb30c0b5e09 /lib/Frontend/CompilerInvocation.cpp | |
parent | 987695a5ddd78beca784d4e503ffbc2dc879181a (diff) |
Make AnalyzerOptions a shared object between CompilerInvocation and
AnalysisManager, allowing the StringMap of configuration values to
be propagated.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index 830ab99548..6bffa1346a 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/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) |