]> granicus.if.org Git - clang/commitdiff
Driver: delete some dead code (NFC)
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 6 Sep 2017 05:11:19 +0000 (05:11 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 6 Sep 2017 05:11:19 +0000 (05:11 +0000)
This code has been `#if 0`'ed out for a very long time.  After speaking
with Duncan, opt to remove it even if it is something which should be
fixed.  If the underlying issue is still valid, this can be restored
with proper explanation and tests.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@312618 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains/Clang.cpp

index ee8f7d5e963681b2faf9263c30f4b56b73fd4178..ba03fcd57c6e709340926d835fbc60cf3d76e046 100644 (file)
@@ -2455,19 +2455,6 @@ static void RenderBuiltinOptions(const ToolChain &TC, const llvm::Triple &T,
   //                     by default.
   if (TC.getArch() == llvm::Triple::le32)
     CmdArgs.push_back("-fno-math-builtin");
-
-#if 0
-  // Default to -fno-builtin-str{cat,cpy} on Darwin for ARM.
-  //
-  // FIXME: Now that PR4941 has been fixed this can be enabled.
-  if (T.isOSDarwin() && (TC.getArch() == llvm::Triple::arm ||
-                         TC.getArch() == llvm::Triple::thumb)) {
-    if (!Args.hasArg(options::OPT_fbuiltin_strcat))
-      CmdArgs.push_back("-fno-builtin-strcat");
-    if (!Args.hasArg(options::OPT_fbuiltin_strcpy))
-      CmdArgs.push_back("-fno-builtin-strcpy");
-  }
-#endif
 }
 
 static void RenderModulesOptions(Compilation &C, const Driver &D,