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
diff --git a/tools/llvmc/ConfigLexer.l b/tools/llvmc/ConfigLexer.l
index 70c0fbf..b9c07a4 100644
--- a/tools/llvmc/ConfigLexer.l
+++ b/tools/llvmc/ConfigLexer.l
@@ -76,7 +76,7 @@
 %}
 
 ASSEMBLER       assembler|Assembler|ASSEMBLER
-BadSubst        \@[^iots][a-zA-Z]\@
+BadSubst        \%[^iots][a-zA-Z]\%
 COMMAND         command|Command|COMMAND
 Comment         \#[^\n]*\n
 NewLine         \n
@@ -93,7 +93,7 @@
 OPT5            opt5|Opt5|OPT5
 OPTIMIZER       optimizer|Optimizer|OPTIMIZER
 OPTIMIZES       optimizes|Optimizes|OPTIMIZES
-Option          [-A-Za-z0-9_:%+/\\|,][-A-Za-z0-9_:%+/\\|,@]*
+Option          [-A-Za-z0-9_:%+/\\|,][-A-Za-z0-9_:+/\\|,@]*
 OUTPUT_IS_ASM   output_is_asm|Output_Is_Asm|OUTPUT_IS_ASM
 PREPROCESSES    preprocesses|PreProcesses|PREPROCESSES
 PREPROCESSOR    preprocessor|PreProcessor|PREPROCESSOR
@@ -154,12 +154,12 @@
 {OPT4}          { return handleContext("opt4",OPT4); }
 {OPT5}          { return handleContext("opt5",OPT5); }
 
-@in@            { return handleSubstitution(IN_SUBST); }
-@out@           { return handleSubstitution(OUT_SUBST); }
-@time@          { return handleSubstitution(TIME_SUBST); }
-@stats@         { return handleSubstitution(STATS_SUBST); }
-@opt@           { return handleSubstitution(OPT_SUBST); }
-@target@        { return handleSubstitution(TARGET_SUBST); }
+%in%            { return handleSubstitution(IN_SUBST); }
+%out%           { return handleSubstitution(OUT_SUBST); }
+%time%          { return handleSubstitution(TIME_SUBST); }
+%stats%         { return handleSubstitution(STATS_SUBST); }
+%opt%           { return handleSubstitution(OPT_SUBST); }
+%target%        { return handleSubstitution(TARGET_SUBST); }
 {BadSubst}      { YY_FATAL_ERROR("Invalid substitution token"); }
 {True}          { return handleBoolean(TRUETOK); }
 {On}            { return handleBoolean(TRUETOK); }