[PATCH] D22338: Use hasFlag instead of hasArg
Dean Michael Berris via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 13 23:45:18 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL275377: Use hasFlag instead of hasArg (authored by dberris).
Changed prior to commit:
http://reviews.llvm.org/D22338?vs=63922&id=63923#toc
Repository:
rL LLVM
http://reviews.llvm.org/D22338
Files:
cfe/trunk/lib/Driver/Tools.cpp
Index: cfe/trunk/lib/Driver/Tools.cpp
===================================================================
--- cfe/trunk/lib/Driver/Tools.cpp
+++ cfe/trunk/lib/Driver/Tools.cpp
@@ -4609,8 +4609,8 @@
Args.AddAllArgs(CmdArgs, options::OPT_finstrument_functions);
- if (Args.hasArg(options::OPT_fxray_instrument,
- options::OPT_fnoxray_instrument, false)) {
+ if (Args.hasFlag(options::OPT_fxray_instrument,
+ options::OPT_fnoxray_instrument, false)) {
CmdArgs.push_back("-fxray-instrument");
if (Arg *A = Args.getLastArg(options::OPT_fxray_instruction_threshold_,
options::OPT_fxray_instruction_threshold_EQ)) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22338.63923.patch
Type: text/x-patch
Size: 697 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160714/cf3ffdae/attachment.bin>
More information about the cfe-commits
mailing list