[llvm-commits] [llvm] r93762 - /llvm/trunk/lib/VMCore/Metadata.cpp

Chris Lattner clattner at apple.com
Mon Jan 18 17:24:04 PST 2010


On Jan 18, 2010, at 12:36 PM, Victor Hernandez wrote:

> Author: hernande
> Date: Mon Jan 18 14:36:54 2010
> New Revision: 93762
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=93762&view=rev
> Log:
> Simplify MDNode::getFunction() and assertLocalFunction() by avoiding extra Function* variable and smallptrset since function-local metadata cannot be cyclic

Thanks Victor.  Now please factor this code by adding a simple:

static const Function *getFunctionForValue(Value *V);

function and using it in assertLocalFunction and getFunction.

-Chris





More information about the llvm-commits mailing list