]> granicus.if.org Git - clang/commitdiff
Driver: inline a single caller of a function (NFC)
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 19 Feb 2017 21:50:40 +0000 (21:50 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 19 Feb 2017 21:50:40 +0000 (21:50 +0000)
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

lib/Driver/Tools.cpp

index 631436e6f5937dc6ddf275128532c69917bef89f..339f6976cd0db4c423bf877746d8d6e2fa7bd9fb 100644 (file)
@@ -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;