Const'ify CompilerInvocation::toArgs().

llvm-svn: 158298
This commit is contained in:
Argyrios Kyrtzidis
2012-06-11 03:34:26 +00:00
parent 8b8a76974f
commit ff32674d3a
2 changed files with 2 additions and 2 deletions

View File

@@ -896,7 +896,7 @@ static void TargetOptsToArgs(const TargetOptions &Opts,
Res.push_back("-target-feature", Opts.Features[i]);
}
void CompilerInvocation::toArgs(std::vector<std::string> &Res) {
void CompilerInvocation::toArgs(std::vector<std::string> &Res) const {
ToArgsList List(Res);
AnalyzerOptsToArgs(getAnalyzerOpts(), List);
CodeGenOptsToArgs(getCodeGenOpts(), List);