From 45796b10d11869e86c6b85e24df165410536b313 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 31 Aug 2012 04:36:05 +0000 Subject: 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 --- lib/Frontend/CompilerInvocation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Frontend/CompilerInvocation.cpp') 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 &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) -- cgit v1.2.3-18-g5258