]> granicus.if.org Git - clang/commitdiff
Driver/Darwin: Remove a useless warning about missing runtime libraries. These
authorDaniel Dunbar <daniel@zuster.org>
Mon, 11 Oct 2010 23:31:07 +0000 (23:31 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 11 Oct 2010 23:31:07 +0000 (23:31 +0000)
are almost never needed, so the warning isn't very useful.

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

include/clang/Basic/DiagnosticDriverKinds.td
lib/Driver/ToolChains.cpp

index 748a3db0c4db9ca6de644925e557348347fa391f..19011ace7f27c35c658f0230c6cc7c7591e96ceb 100644 (file)
@@ -93,8 +93,6 @@ def warn_drv_assuming_mfloat_abi_is : Warning<
   "unknown platform, assuming -mfloat-abi=%0">;
 def warn_ignoring_ftabstop_value : Warning<
   "ignoring invalid -ftabstop value '%0', using default value %1">;
-def warn_drv_missing_resource_library : Warning<
-  "missing resource library '%0', link may fail">;
 def warn_drv_conflicting_deployment_targets : Warning<
   "conflicting deployment targets, both MACOSX_DEPLOYMENT_TARGET '%0' and IPHONEOS_DEPLOYMENT_TARGET '%1' are present in environment">;
 def warn_drv_treating_input_as_cxx : Warning<
index 79fb07519bd9c523e7fef9b6791d718d2542d4c0..9417a99786912ac349580bfa63146704b988d954 100644 (file)
@@ -526,10 +526,7 @@ void DarwinClang::AddLinkRuntimeLibArgs(const ArgList &Args,
 
     // For now, allow missing resource libraries to support developers who may
     // not have compiler-rt checked out or integrated into their build.
-    if (!P.exists())
-      getDriver().Diag(clang::diag::warn_drv_missing_resource_library)
-        << P.str();
-    else
+    if (P.exists())
       CmdArgs.push_back(Args.MakeArgString(P.str()));
   }
 }
@@ -667,10 +664,7 @@ void DarwinClang::AddCCKextLibArgs(const ArgList &Args,
   
   // For now, allow missing resource libraries to support developers who may
   // not have compiler-rt checked out or integrated into their build.
-  if (!P.exists())
-    getDriver().Diag(clang::diag::warn_drv_missing_resource_library)
-      << P.str();
-  else
+  if (P.exists())
     CmdArgs.push_back(Args.MakeArgString(P.str()));
 }