<div dir="ltr">Currently there is no way to prevent llvm::opt objects from being in your library code, but it shouldn't really impede your use of an LLVM library. You don't have to actually parse command line flags into the structures.</div><br><div class="gmail_quote"><div dir="ltr">On Sat, May 14, 2016 at 10:58 AM Lorenzo Laneve via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Good morning,<br>
<br>
in libraries there are llvm::opt objects about the command line args that I don't want to be linked into my executable (such as llc opts)<br>
I use that tool for flags (in the meanwhile I'll probably implement something myself), my doubt is that even if I don't use that tool those symbols will be added to the executable anyway.<br>
<br>
I'm currently using 'llvm-config all'.<br>
What flags should I use for the backend interface functions?<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>