OPTION("-dependency-file", dependency_file, Separate, INVALID, INVALID, "", 0, 0, 0)
OPTION("-dumpmachine", dumpmachine, Flag, INVALID, INVALID, "u", 0, 0, 0)
OPTION("-dumpspecs", dumpspecs, Flag, INVALID, INVALID, "u", 0, 0, 0)
-OPTION("-dumpversion", dumpversion, Flag, INVALID, INVALID, "u", 0, 0, 0)
+OPTION("-dumpversion", dumpversion, Flag, INVALID, INVALID, "", 0, 0, 0)
OPTION("-dylib_file", dylib__file, Separate, INVALID, INVALID, "", 0, 0, 0)
OPTION("-dylinker_install_name", dylinker__install__name, JoinedOrSeparate, INVALID, INVALID, "", 0, 0, 0)
OPTION("-dylinker", dylinker, Flag, INVALID, INVALID, "", 0, 0, 0)
#endif
// FIXME: The following handlers should use a callback mechanism, we
// don't know what the client would like to do.
+
+ // FIXME: Do not hardcode clang version.
llvm::errs() << "clang version 1.0 (" << vers << " " << revision << ")" << "\n";
const ToolChain &TC = C.getDefaultToolChain();
// place, but we don't expect inconsistencies w.r.t. that to matter
// in practice.
+ if (C.getArgs().hasArg(options::OPT_dumpversion)) {
+ // FIXME: Do not hardcode clang version.
+ llvm::outs() << "1.0\n";
+ return false;
+ }
+
if (C.getArgs().hasArg(options::OPT__help)) {
PrintHelp();
return false;