<div dir="ltr">The attached patch adds DenseMap::lookup:<br>+  /// lookup - Return the entry for the specified key, or a default<br>+  /// value if no such entry exists.<br><br>This is useful for situations where you just want to get an entry from<br>
the DenseMap if it exists. Code like:<br>--<br>  llvm::Function *Fn = MethodDefinitions[MD];<br>  if (!Fn)<br>    return 0;<br>--<br>is succinct but is wastefully adding entries into MethodDefinitions.<br><br> - Daniel<br>
<br></div>