Change @ -> % in config files. @name@ might be needed for config files to

themselves be configured via autoconf so its not a good substitition syntax
for llvmc. Furthermore % is more llvmish :)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15957 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer
2004-08-20 22:53:11 +00:00
parent b65eadb7f5
commit 53aa793721
5 changed files with 36 additions and 35 deletions
+7 -7
View File
@@ -212,20 +212,20 @@ CompilerDriver::Action* CompilerDriver::GetAction(ConfigData* cd,
StringVector::iterator PI = pat->args.begin();
StringVector::iterator PE = pat->args.end();
while (PI != PE) {
if ((*PI)[0] == '@') {
if (*PI == "@in@") {
if ((*PI)[0] == '%') {
if (*PI == "%in%") {
action->args.push_back(input);
} else if (*PI == "@out@") {
} else if (*PI == "%out%") {
action->args.push_back(output);
} else if (*PI == "@time@") {
} else if (*PI == "%time%") {
if (timePasses)
action->args.push_back("-time-passes");
} else if (*PI == "@stats@") {
} else if (*PI == "%stats%") {
if (showStats)
action->args.push_back("-stats");
} else if (*PI == "@target@") {
} else if (*PI == "%target%") {
// FIXME: Ignore for now
} else if (*PI == "@opt@") {
} else if (*PI == "%opt%") {
if (!emitRawCode) {
if (pat->isSet(GROKS_DASH_O)) {
if (optLevel != OPT_NONE) {