dberris created this revision.
dberris added a reviewer: echristo.
dberris added a subscriber: cfe-commits.
Herald added a subscriber: mehdi_amini.

Fix the build to use hasFlag instead of hasArg for checking some flags.

http://reviews.llvm.org/D22338

Files:
  lib/Driver/Tools.cpp

Index: lib/Driver/Tools.cpp
===================================================================
--- lib/Driver/Tools.cpp
+++ 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)) 
{


Index: lib/Driver/Tools.cpp
===================================================================
--- lib/Driver/Tools.cpp
+++ 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)) {
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to