From: Saleem Abdulrasool Date: Sun, 19 Feb 2017 21:50:40 +0000 (+0000) Subject: Driver: inline a single caller of a function (NFC) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10bdc60b50d6022c5c314789f98dad2f9039a618;p=clang Driver: inline a single caller of a function (NFC) Inline the addCompilerRT call to the single caller. NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@295620 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 631436e6f5..339f6976cd 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -3246,14 +3246,6 @@ static void CollectArgsForIntegratedAssembler(Compilation &C, } } -// This adds the static libclang_rt.builtins-arch.a directly to the command line -// FIXME: Make sure we can also emit shared objects if they're requested -// and available, check for possible errors, etc. -static void addClangRT(const ToolChain &TC, const ArgList &Args, - ArgStringList &CmdArgs) { - CmdArgs.push_back(TC.getCompilerRTArgString(Args, "builtins")); -} - static void addOpenMPRuntime(ArgStringList &CmdArgs, const ToolChain &TC, const ArgList &Args) { if (!Args.hasFlag(options::OPT_fopenmp, options::OPT_fopenmp_EQ, @@ -10074,7 +10066,7 @@ static void AddRunTimeLibs(const ToolChain &TC, const Driver &D, case llvm::Triple::Win32: case llvm::Triple::Linux: case llvm::Triple::Fuchsia: - addClangRT(TC, Args, CmdArgs); + CmdArgs.push_back(TC.getCompilerRTArgString(Args, "builtins")); break; } break;