Don't issue a slew of warnings if a bogus cpu type is specified.

Issue #221.
This commit is contained in:
Matt Pharr
2012-04-03 06:13:28 -07:00
parent eb85da81e1
commit b813452d33
3 changed files with 39 additions and 16 deletions

View File

@@ -91,7 +91,7 @@ usage(int ret) {
Target::SupportedTargetArchs());
printf(" [--c++-include-file=<name>]\t\tSpecify name of file to emit in #include statement in generated C++ code.\n");
printf(" [--cpu=<cpu>]\t\t\tSelect target CPU type\n");
printf(" <cpu>={%s}\n", Target::SupportedTargetCPUs());
printf(" <cpu>={%s}\n", Target::SupportedTargetCPUs().c_str());
printf(" [-D<foo>]\t\t\t\t#define given value when running preprocessor\n");
printf(" [--emit-asm]\t\t\tGenerate assembly language file as output\n");
#ifndef LLVM_2_9