[llvm-commits] CVS: llvm/tools/llvmc/CompilerDriver.h ConfigLexer.l Configuration.cpp
Reid Spencer
reid at x10sys.com
Wed Oct 27 21:04:49 PDT 2004
Changes in directory llvm/tools/llvmc:
CompilerDriver.h updated: 1.12 -> 1.13
ConfigLexer.l updated: 1.9 -> 1.10
Configuration.cpp updated: 1.13 -> 1.14
---
Log message:
Eliminate the force flag, configuration item, and related support
---
Diffs of the changes: (+24 -26)
Index: llvm/tools/llvmc/CompilerDriver.h
diff -u llvm/tools/llvmc/CompilerDriver.h:1.12 llvm/tools/llvmc/CompilerDriver.h:1.13
--- llvm/tools/llvmc/CompilerDriver.h:1.12 Mon Sep 13 20:58:45 2004
+++ llvm/tools/llvmc/CompilerDriver.h Wed Oct 27 23:04:38 2004
@@ -120,17 +120,16 @@
/// @brief Driver specific flags
enum DriverFlags {
DRY_RUN_FLAG = 0x0001, ///< Do everything but execute actions
- FORCE_FLAG = 0x0002, ///< Force overwrite of output files
- VERBOSE_FLAG = 0x0004, ///< Print each action
- DEBUG_FLAG = 0x0008, ///< Print debug information
- TIME_PASSES_FLAG = 0x0010, ///< Time the passes as they execute
- TIME_ACTIONS_FLAG = 0x0020, ///< Time the actions as they execute
- SHOW_STATS_FLAG = 0x0040, ///< Show pass statistics
- EMIT_NATIVE_FLAG = 0x0080, ///< Emit native code instead of bc
- EMIT_RAW_FLAG = 0x0100, ///< Emit raw, unoptimized bytecode
- KEEP_TEMPS_FLAG = 0x0200, ///< Don't delete temporary files
- STRIP_OUTPUT_FLAG = 0x0400, ///< Strip symbols from linked output
- DRIVER_FLAGS_MASK = 0x07FF, ///< Union of the above flags
+ VERBOSE_FLAG = 0x0002, ///< Print each action
+ DEBUG_FLAG = 0x0004, ///< Print debug information
+ TIME_PASSES_FLAG = 0x0008, ///< Time the passes as they execute
+ TIME_ACTIONS_FLAG = 0x0010, ///< Time the actions as they execute
+ SHOW_STATS_FLAG = 0x0020, ///< Show pass statistics
+ EMIT_NATIVE_FLAG = 0x0040, ///< Emit native code instead of bc
+ EMIT_RAW_FLAG = 0x0080, ///< Emit raw, unoptimized bytecode
+ KEEP_TEMPS_FLAG = 0x0100, ///< Don't delete temporary files
+ STRIP_OUTPUT_FLAG = 0x0200, ///< Strip symbols from linked output
+ DRIVER_FLAGS_MASK = 0x03FF, ///< Union of the above flags
};
/// @}
Index: llvm/tools/llvmc/ConfigLexer.l
diff -u llvm/tools/llvmc/ConfigLexer.l:1.9 llvm/tools/llvmc/ConfigLexer.l:1.10
--- llvm/tools/llvmc/ConfigLexer.l:1.9 Mon Sep 13 20:59:31 2004
+++ llvm/tools/llvmc/ConfigLexer.l Wed Oct 27 23:04:38 2004
@@ -134,7 +134,7 @@
return EQUALS;
}
-{VERSION} { return handleNameContext(VERSION); }
+{VERSION} { return handleNameContext(VERSION_TOK); }
{LANG} { return handleNameContext(LANG); }
{NAME} { return handleNameContext(NAME); }
@@ -161,7 +161,6 @@
%args% { return handleSubstitution(ARGS_SUBST); }
%defs% { return handleSubstitution(DEFS_SUBST); }
-%force% { return handleSubstitution(FORCE_SUBST); }
%in% { return handleSubstitution(IN_SUBST); }
%incls% { return handleSubstitution(INCLS_SUBST); }
%libs% { return handleSubstitution(LIBS_SUBST); }
Index: llvm/tools/llvmc/Configuration.cpp
diff -u llvm/tools/llvmc/Configuration.cpp:1.13 llvm/tools/llvmc/Configuration.cpp:1.14
--- llvm/tools/llvmc/Configuration.cpp:1.13 Wed Sep 1 17:55:40 2004
+++ llvm/tools/llvmc/Configuration.cpp Wed Oct 27 23:04:38 2004
@@ -71,8 +71,8 @@
std::ifstream F;
};
- cl::opt<bool> DumpTokens("dump-tokens", cl::Optional, cl::Hidden, cl::init(false),
- cl::desc("Dump lexical tokens (debug use only)."));
+ cl::opt<bool> DumpTokens("dump-tokens", cl::Optional, cl::Hidden,
+ cl::init(false), cl::desc("Dump lexical tokens (debug use only)."));
struct Parser
{
@@ -157,7 +157,6 @@
switch (token) {
case ARGS_SUBST: optList.push_back("%args%"); break;
case DEFS_SUBST: optList.push_back("%defs%"); break;
- case FORCE_SUBST: optList.push_back("%force%"); break;
case IN_SUBST: optList.push_back("%in%"); break;
case INCLS_SUBST: optList.push_back("%incls%"); break;
case LIBS_SUBST: optList.push_back("%libs%"); break;
@@ -349,8 +348,8 @@
confDat->Translator.clear(CompilerDriver::OUTPUT_IS_ASM_FLAG);
break;
default:
- error(std::string("Expecting 'command', 'preprocesses', ") +
- "'translates' or 'output' but found '" +
+ error(std::string("Expecting 'command', 'preprocesses', "
+ "'translates' or 'output' but found '") +
ConfigLexerState.StringVal + "' instead");
break;
}
@@ -381,7 +380,7 @@
void parseAssignment() {
switch (token) {
- case VERSION: parseVersion(); break;
+ case VERSION_TOK: parseVersion(); break;
case LANG: parseLang(); break;
case PREPROCESSOR: parsePreprocessor(); break;
case TRANSLATOR: parseTranslator(); break;
@@ -407,14 +406,15 @@
}
};
- void
- ParseConfigData(InputProvider& provider, CompilerDriver::ConfigData& confDat) {
- Parser p;
- p.token = EOFTOK;
- p.provider = &provider;
- p.confDat = &confDat;
- p.parseFile();
+void
+ParseConfigData(InputProvider& provider, CompilerDriver::ConfigData& confDat) {
+ Parser p;
+ p.token = EOFTOK;
+ p.provider = &provider;
+ p.confDat = &confDat;
+ p.parseFile();
}
+
}
CompilerDriver::ConfigData*
More information about the llvm-commits
mailing list