[cfe-commits] r78233 - /cfe/trunk/lib/Driver/Tools.cpp

Benjamin Kramer benny.kra at googlemail.com
Wed Aug 5 12:48:01 PDT 2009


Author: d0k
Date: Wed Aug  5 14:47:38 2009
New Revision: 78233

URL: http://llvm.org/viewvc/llvm-project?rev=78233&view=rev
Log:
Fix -fno-omit-frame-pointer bug Eli noticed.

Modified:
    cfe/trunk/lib/Driver/Tools.cpp

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=78233&r1=78232&r2=78233&view=diff

==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed Aug  5 14:47:38 2009
@@ -309,8 +309,8 @@
   if (Args.hasArg(options::OPT_ftime_report))
     CmdArgs.push_back("--time-passes");
   // FIXME: Set --enable-unsafe-fp-math.
-  if (Args.hasArg(options::OPT_fno_omit_frame_pointer) ||
-      !Args.hasArg(options::OPT_fomit_frame_pointer))
+  if (Args.hasFlag(options::OPT_fno_omit_frame_pointer,
+                   options::OPT_fomit_frame_pointer))
     CmdArgs.push_back("--disable-fp-elim");
   if (!Args.hasFlag(options::OPT_fzero_initialized_in_bss,
                     options::OPT_fno_zero_initialized_in_bss,





More information about the cfe-commits mailing list