Add MDNode::getFunction(), which figures out the metadata's function, if it has funct...
authorVictor Hernandez <vhernandez@apple.com>
Thu, 14 Jan 2010 01:45:14 +0000 (01:45 +0000)
committerVictor Hernandez <vhernandez@apple.com>
Thu, 14 Jan 2010 01:45:14 +0000 (01:45 +0000)
commitc7650b4d1907becbf2ed112074fd2c4a6f174aa8
tree6ec82961417b99323f6ad437146ab42e7d530cc3
parent069e100f9a79a63db177a521fd790f4d77d1209c
Add MDNode::getFunction(), which figures out the metadata's function, if it has function that it is local to.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93400 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Metadata.h
lib/VMCore/Metadata.cpp