First version of llvm-upgrade that can correctly upgrade a large test

case.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32089 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer
2006-12-01 20:26:20 +00:00
parent 102e2d3c82
commit e77e35e8b1
13 changed files with 4588 additions and 3787 deletions

View File

@@ -39,6 +39,10 @@ OutputFilename("o", cl::desc("Override output filename"),
static cl::opt<bool>
Force("f", cl::desc("Overwrite output files"));
static cl::opt<bool>
Debug("debug", cl::desc("Print debug output from yacc parser"),cl::Hidden,
cl::init(false));
int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm .ll -> .bc assembler\n");
sys::PrintStackTraceOnErrorSignal();
@@ -109,7 +113,7 @@ int main(int argc, char **argv) {
return 1;
}
UpgradeAssembly(InputFilename, *In, *Out);
UpgradeAssembly(InputFilename, *In, *Out, Debug);
} catch (const std::string& caught_message) {
llvm_cerr << argv[0] << ": " << caught_message << "\n";