diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-09-14 01:59:31 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-09-14 01:59:31 +0000 |
commit | d4ff15af960b6f42ac069bdf24e7347ab3b52e23 (patch) | |
tree | c7b6806ca300d209b411706aafec689bf321dbd4 /tools/llvmc | |
parent | 54fafe4dc9d3ad1cedd638f1a298cedba166fd6e (diff) | |
download | external_llvm-d4ff15af960b6f42ac069bdf24e7347ab3b52e23.zip external_llvm-d4ff15af960b6f42ac069bdf24e7347ab3b52e23.tar.gz external_llvm-d4ff15af960b6f42ac069bdf24e7347ab3b52e23.tar.bz2 |
Support substitution options for the W, M, and f options.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16326 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc')
-rw-r--r-- | tools/llvmc/ConfigLexer.h | 3 | ||||
-rw-r--r-- | tools/llvmc/ConfigLexer.l | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tools/llvmc/ConfigLexer.h b/tools/llvmc/ConfigLexer.h index f947da2..1548a72 100644 --- a/tools/llvmc/ConfigLexer.h +++ b/tools/llvmc/ConfigLexer.h @@ -59,6 +59,7 @@ enum ConfigLexerTokens { DEFS_SUBST, ///< The substitution item %defs% EQUALS, ///< The equals sign, = FALSETOK, ///< A boolean false value (false/no/off) + FOPTS_SUBST, ///< The substitution item %fOpts% FORCE_SUBST, ///< The substitution item %force% IN_SUBST, ///< The substitution item %in% INCLS_SUBST, ///< The substitution item %incls% @@ -68,6 +69,7 @@ enum ConfigLexerTokens { LIBS, ///< The name "libs" (and variants) LIBS_SUBST, ///< The substitution item %libs% LINKER, ///< The name "linker" (and variants) + MOPTS_SUBST, ///< The substitution item %Mopts% NAME, ///< The name "name" (and variants) OPT_SUBST, ///< The substitution item %opt% OPTIMIZER, ///< The name "optimizer" (and variants) @@ -92,6 +94,7 @@ enum ConfigLexerTokens { TRUETOK, ///< A boolean true value (true/yes/on) VERBOSE_SUBST,///< The substitution item %verbose% VERSION, ///< The name "version" (and variants) + WOPTS_SUBST, ///< The %WOpts% substitution }; extern ConfigLexerTokens Configlex(); diff --git a/tools/llvmc/ConfigLexer.l b/tools/llvmc/ConfigLexer.l index 481276e..cab02a1 100644 --- a/tools/llvmc/ConfigLexer.l +++ b/tools/llvmc/ConfigLexer.l @@ -171,6 +171,9 @@ White [ \t]* %target% { return handleSubstitution(TARGET_SUBST); } %time% { return handleSubstitution(TIME_SUBST); } %verbose% { return handleSubstitution(VERBOSE_SUBST); } +%fOpts% { return handleSubstitution(FOPTS_SUBST); } +%MOpts% { return handleSubstitution(MOPTS_SUBST); } +%WOpts% { return handleSubstitution(WOPTS_SUBST); } {BadSubst} { YY_FATAL_ERROR("Invalid substitution token"); } {Assembly} { return handleValueContext(ASSEMBLY); } |