[PATCH] Driver: Modify the -print-libgcc-file-name code to use ToolChain::GetRuntimeLibPath().

Shiz hi at shiz.me
Tue May 26 18:19:14 PDT 2015


As a follow-up to http://reviews.llvm.org/D10050, this modifies the existing -print-libgcc-filename code to take advantage of this new API for better abstractions.

http://reviews.llvm.org/D10051

Files:
  lib/Driver/Driver.cpp

Index: lib/Driver/Driver.cpp
===================================================================
--- lib/Driver/Driver.cpp
+++ lib/Driver/Driver.cpp
@@ -779,7 +779,7 @@
   }
 
   if (C.getArgs().hasArg(options::OPT_print_libgcc_file_name)) {
-    llvm::outs() << GetFilePath("libgcc.a", TC) << "\n";
+    llvm::outs() << TC.GetRuntimeLibPath(ToolChain::RLT_Libgcc, "") << "\n";
     return false;
   }

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10051.26563.patch
Type: text/x-patch
Size: 404 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150527/f233879e/attachment.bin>


More information about the cfe-commits mailing list