[cfe-commits] r158298 - in /cfe/trunk: include/clang/Frontend/CompilerInvocation.h lib/Frontend/CompilerInvocation.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Sun Jun 10 20:34:26 PDT 2012
Author: akirtzidis
Date: Sun Jun 10 22:34:26 2012
New Revision: 158298
URL: http://llvm.org/viewvc/llvm-project?rev=158298&view=rev
Log:
Const'ify CompilerInvocation::toArgs().
Modified:
cfe/trunk/include/clang/Frontend/CompilerInvocation.h
cfe/trunk/lib/Frontend/CompilerInvocation.cpp
Modified: cfe/trunk/include/clang/Frontend/CompilerInvocation.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Frontend/CompilerInvocation.h?rev=158298&r1=158297&r2=158298&view=diff
==============================================================================
--- cfe/trunk/include/clang/Frontend/CompilerInvocation.h (original)
+++ cfe/trunk/include/clang/Frontend/CompilerInvocation.h Sun Jun 10 22:34:26 2012
@@ -127,7 +127,7 @@
/// toArgs - Convert the CompilerInvocation to a list of strings suitable for
/// passing to CreateFromArgs.
- void toArgs(std::vector<std::string> &Res);
+ void toArgs(std::vector<std::string> &Res) const;
/// setLangDefaults - Set language defaults for the given input language and
/// language standard in this CompilerInvocation.
Modified: cfe/trunk/lib/Frontend/CompilerInvocation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInvocation.cpp?rev=158298&r1=158297&r2=158298&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/CompilerInvocation.cpp (original)
+++ cfe/trunk/lib/Frontend/CompilerInvocation.cpp Sun Jun 10 22:34:26 2012
@@ -896,7 +896,7 @@
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);
More information about the cfe-commits
mailing list