<div dir="ltr">Nothing too drastic, just an API change/update I made inĀ <a href="http://llvm.org/viewvc/llvm-project?view=revision&revision=222319">http://llvm.org/viewvc/llvm-project?view=revision&revision=222319</a> - removing the un-STL-like GetOrCreateValue in favor of the more standard 'insert'. That commit has many examples of API updates you can use to guide your own. Do feel free to ask if you have further questions/it's unclear how to migrate your code.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 12, 2014 at 4:52 PM, Alexandros Tzannes <span dir="ltr"><<a href="mailto:atzannes@illinois.edu" target="_blank">atzannes@illinois.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I am using clang as a framework to implement an analysis for my research (ASaP: Annotations for Safe Parallelism), and I just merged with ToT. I have been using the following line of code to get command line flags passed to my analysis using the -analyzer-config flag:<br>
<br>
Mgr.getAnalyzerOptions().<u></u>Config.GetOrCreateValue(<u></u>OptionName, "simple").getValue()<br>
<br>
OptionName (is a stringRef) is the option I want to read. This line of code would return the argument to OptionName given on the command line or "simple" if the option was not specified.<br>
<br>
The GetOrCreateValue method seems to have been removed now from the llvm::StringMap. I had asked over a year ago how to pass parameters to my custom passes, and I was shown this method. Perhaps there is a better way now that doesn't use GetOrCreateValue (which does not exist anymore anyway).<br>
<br>
So my question boils down to this: Should I write code to emulate the behavior of GetOrCreateValue, or is there a new and improved way to pass arguments to custom passes? I work in the static analyzer by the way.<br>
<br>
Thanks a bunch!<br>
Alex<br>
______________________________<u></u>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>