From ff32674d3ad676d3cb23e9ca2f592a4fff729c1f Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Mon, 11 Jun 2012 03:34:26 +0000 Subject: Const'ify CompilerInvocation::toArgs(). llvm-svn: 158298 --- clang/lib/Frontend/CompilerInvocation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Frontend/CompilerInvocation.cpp') diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 35ffe49..99c338c 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -896,7 +896,7 @@ static void TargetOptsToArgs(const TargetOptions &Opts, Res.push_back("-target-feature", Opts.Features[i]); } -void CompilerInvocation::toArgs(std::vector &Res) { +void CompilerInvocation::toArgs(std::vector &Res) const { ToArgsList List(Res); AnalyzerOptsToArgs(getAnalyzerOpts(), List); CodeGenOptsToArgs(getCodeGenOpts(), List); -- cgit v1.1