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

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Thu May 19 10:37:13 PDT 2016


Plugin-opt (and mllvm) aren't really meant for users, I'm not sure that we
need to be making them easier to specify like that.

Peter
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



_______________________________________________
llvm-commits mailing list
llvm-commits at lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160519/8e8218b6/attachment.html>


More information about the llvm-commits mailing list