diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-19 04:00:53 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-19 04:00:53 +0000 |
commit | fffd18167d4a26b4cc768c778a7e06c2c357f6a4 (patch) | |
tree | 290ca03ce8a6add73ba29d1c9ea9d546c73c53b1 /clang/lib/Driver/Driver.cpp | |
parent | beab381d2d2c2f5ba7745e44f519f6a165d89eec (diff) | |
download | bcm5719-llvm-fffd18167d4a26b4cc768c778a7e06c2c357f6a4.tar.gz bcm5719-llvm-fffd18167d4a26b4cc768c778a7e06c2c357f6a4.zip |
Driver: Switch to using explicit {getLast,has}ArgNoClaim functions instead of taking a Claim argument.
- Most driver code always claims, and bool arguments don't play nice with the overloads.
llvm-svn: 89308
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r-- | clang/lib/Driver/Driver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index ce1ac3b7569..e0cc9a72753 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -687,7 +687,7 @@ void Driver::BuildActions(const ArgList &Args, ActionList &Actions) const { // // Otherwise emit an error but still use a valid type to avoid // spurious errors (e.g., no inputs). - if (!Args.hasArg(options::OPT_E, false)) + if (!Args.hasArgNoClaim(options::OPT_E)) Diag(clang::diag::err_drv_unknown_stdin_type); Ty = types::TY_C; } else { |