Just use getParent() instead of getModuleFromVal when the value is a Function.
authorDan Gohman <gohman@apple.com>
Wed, 14 Jul 2010 21:12:44 +0000 (21:12 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 14 Jul 2010 21:12:44 +0000 (21:12 +0000)
commit79b78a43ece977899b654fe3c19d0c94f963c128
treeeceefcf9a6939a11dd3ea937b199ed41b4afc95a
parent40cf12fe775e0a689427f3c8779d8b6447bab3ca
Just use getParent() instead of getModuleFromVal when the value is a Function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108358 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/AsmWriter.cpp