r295620 - Driver: inline a single caller of a function (NFC)

Saleem Abdulrasool via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 19 13:50:41 PST 2017


Author: compnerd
Date: Sun Feb 19 15:50:40 2017
New Revision: 295620

URL: http://llvm.org/viewvc/llvm-project?rev=295620&view=rev
Log:
Driver: inline a single caller of a function (NFC)

Inline the addCompilerRT call to the single caller.  NFC.

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=295620&r1=295619&r2=295620&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Sun Feb 19 15:50:40 2017
@@ -3246,14 +3246,6 @@ static void CollectArgsForIntegratedAsse
   }
 }
 
-// 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 ToolCha
     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;




More information about the cfe-commits mailing list