summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-02-07 19:36:38 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-02-07 19:36:38 +0000
commit6bd17d2f2e6e498b0ff01e2e755f044de046d138 (patch)
tree70580021eb783d97056803d93eb2becffca73478 /tools
parent52aabafeee9e8634eceb46b1a3fdbd3cd22b1cf7 (diff)
Make use of const-correct ParseCommandLineOptions
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150000 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/arcmt-test/arcmt-test.cpp2
-rw-r--r--tools/driver/cc1as_main.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/arcmt-test/arcmt-test.cpp b/tools/arcmt-test/arcmt-test.cpp
index 6efb707950..2fd1444159 100644
--- a/tools/arcmt-test/arcmt-test.cpp
+++ b/tools/arcmt-test/arcmt-test.cpp
@@ -353,7 +353,7 @@ int main(int argc, const char **argv) {
if (StringRef(argv[optargc]) == "--args")
break;
}
- llvm::cl::ParseCommandLineOptions(optargc, const_cast<char **>(argv), "arcmt-test");
+ llvm::cl::ParseCommandLineOptions(optargc, argv, "arcmt-test");
if (VerifyTransformedFiles) {
if (ResultFiles.empty()) {
diff --git a/tools/driver/cc1as_main.cpp b/tools/driver/cc1as_main.cpp
index 14ff1e03ac..84aeced411 100644
--- a/tools/driver/cc1as_main.cpp
+++ b/tools/driver/cc1as_main.cpp
@@ -413,7 +413,7 @@ int cc1as_main(const char **ArgBegin, const char **ArgEnd,
for (unsigned i = 0; i != NumArgs; ++i)
Args[i + 1] = Asm.LLVMArgs[i].c_str();
Args[NumArgs + 1] = 0;
- llvm::cl::ParseCommandLineOptions(NumArgs + 1, const_cast<char **>(Args));
+ llvm::cl::ParseCommandLineOptions(NumArgs + 1, Args);
}
// Execute the invocation, unless there were parsing errors.