diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-06-11 03:34:26 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-06-11 03:34:26 +0000 |
commit | 7ed25df166c68a3d67f0f05b0b7dd802c57adfb8 (patch) | |
tree | 693754b51dce4680d0c51cc82b457b12e43d331f | |
parent | 3c2fcf8705023e1d91d1c85dc7c8a4aa2248050b (diff) |
Const'ify CompilerInvocation::toArgs().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158298 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Frontend/CompilerInvocation.h | 2 | ||||
-rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Frontend/CompilerInvocation.h b/include/clang/Frontend/CompilerInvocation.h index 0d2260acbc..19cd5b72c6 100644 --- a/include/clang/Frontend/CompilerInvocation.h +++ b/include/clang/Frontend/CompilerInvocation.h @@ -127,7 +127,7 @@ public: /// 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. 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<std::string> &Res) { +void CompilerInvocation::toArgs(std::vector<std::string> &Res) const { ToArgsList List(Res); AnalyzerOptsToArgs(getAnalyzerOpts(), List); CodeGenOptsToArgs(getCodeGenOpts(), List); |