From 362ed7052071245c6c1b15d59c1973f8c80b0b2a Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 11 Oct 2010 23:31:07 +0000 Subject: [PATCH] Driver/Darwin: Remove a useless warning about missing runtime libraries. These 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 | 2 -- lib/Driver/ToolChains.cpp | 10 ++-------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/include/clang/Basic/DiagnosticDriverKinds.td b/include/clang/Basic/DiagnosticDriverKinds.td index 748a3db0c4..19011ace7f 100644 --- a/include/clang/Basic/DiagnosticDriverKinds.td +++ b/include/clang/Basic/DiagnosticDriverKinds.td @@ -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< diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 79fb07519b..9417a99786 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -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())); } -- 2.40.0