r186983 - Remove support for CCC_ADD_ARGS. QA_OVERRIDE_GCC3_OPTIONS supersedes it.
Rafael Espindola
rafael.espindola at gmail.com
Tue Jul 23 12:55:06 PDT 2013
Author: rafael
Date: Tue Jul 23 14:55:06 2013
New Revision: 186983
URL: http://llvm.org/viewvc/llvm-project?rev=186983&view=rev
Log:
Remove support for CCC_ADD_ARGS. QA_OVERRIDE_GCC3_OPTIONS supersedes it.
Removed:
cfe/trunk/test/Driver/ccc-add-args.c
Modified:
cfe/trunk/tools/driver/driver.cpp
Removed: cfe/trunk/test/Driver/ccc-add-args.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/ccc-add-args.c?rev=186982&view=auto
==============================================================================
--- cfe/trunk/test/Driver/ccc-add-args.c (original)
+++ cfe/trunk/test/Driver/ccc-add-args.c (removed)
@@ -1,4 +0,0 @@
-// RUN: env CCC_ADD_ARGS="-ccc-print-options,,-v" %clang -### 2>&1 | FileCheck %s
-// CHECK: Option 0 - Name: "-ccc-print-options", Values: {}
-// CHECK: Option 1 - Name: "-v", Values: {}
-// CHECK: Option 2 - Name: "-###", Values: {}
Modified: cfe/trunk/tools/driver/driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/driver.cpp?rev=186983&r1=186982&r2=186983&view=diff
==============================================================================
--- cfe/trunk/tools/driver/driver.cpp (original)
+++ cfe/trunk/tools/driver/driver.cpp Tue Jul 23 14:55:06 2013
@@ -323,25 +323,6 @@ int main(int argc_, const char **argv_)
if (const char *OverrideStr = ::getenv("QA_OVERRIDE_GCC3_OPTIONS")) {
// FIXME: Driver shouldn't take extra initial argument.
ApplyQAOverride(argv, OverrideStr, SavedStrings);
- } else if (const char *Cur = ::getenv("CCC_ADD_ARGS")) {
- // FIXME: Driver shouldn't take extra initial argument.
- std::vector<const char*> ExtraArgs;
-
- for (;;) {
- const char *Next = strchr(Cur, ',');
-
- if (Next) {
- ExtraArgs.push_back(SaveStringInSet(SavedStrings,
- std::string(Cur, Next)));
- Cur = Next + 1;
- } else {
- if (*Cur != '\0')
- ExtraArgs.push_back(SaveStringInSet(SavedStrings, Cur));
- break;
- }
- }
-
- argv.insert(&argv[1], ExtraArgs.begin(), ExtraArgs.end());
}
std::string Path = GetExecutablePath(argv[0], CanonicalPrefixes);
More information about the cfe-commits
mailing list