[PATCH] D20423: [Clang][LLVMGold] Passing LLVM arguments to gold plugin

Bhargav Reddy Godala via llvm-commits llvm-commits at lists.llvm.org
Thu May 19 09:53:16 PDT 2016


bunty2020 updated this revision to Diff 57813.
bunty2020 added a comment.

Moved changes to AddGoldPlugin function


http://reviews.llvm.org/D20423

Files:
  lib/Driver/Tools.cpp

Index: lib/Driver/Tools.cpp
===================================================================
--- lib/Driver/Tools.cpp
+++ lib/Driver/Tools.cpp
@@ -1923,6 +1923,10 @@
     else
       CmdArgs.push_back("-plugin-opt=-debugger-tune=gdb");
   }
+  for (const Arg *A : Args.filtered(options::OPT_mllvm)) {
+    CmdArgs.push_back(Args.MakeArgString("-plugin-opt="
+                                         + StringRef(A->getValue(0))));
+  }
 }
 
 /// This is a helper function for validating the optional refinement step


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20423.57813.patch
Type: text/x-patch
Size: 519 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160519/7123aa6a/attachment.bin>


More information about the llvm-commits mailing list