From 7ed25df166c68a3d67f0f05b0b7dd802c57adfb8 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Mon, 11 Jun 2012 03:34:26 +0000 Subject: Const'ify CompilerInvocation::toArgs(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158298 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Frontend/CompilerInvocation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Frontend/CompilerInvocation.cpp') diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index 35ffe4941c..99c338c876 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/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.2.3-18-g5258