OSDN Git Service

Verifier: Simplify and fix issue where we were not verifying unmaterialized functions.
authorPeter Collingbourne <peter@pcc.me.uk>
Mon, 6 Jun 2016 23:21:27 +0000 (23:21 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Mon, 6 Jun 2016 23:21:27 +0000 (23:21 +0000)
commit052c9ee80b7d08d96125b4716eab58104eea0e24
tree7753294fe38d893c278d096191e8c2d4bde9fae8
parentd97680dbf076e9c7896402d94fd1c9e920efd240
Verifier: Simplify and fix issue where we were not verifying unmaterialized functions.

Arrange to call verify(Function &) on each function, followed by
verify(Module &), whether the verifier is being used from the pass or
from verifyModule(). As a side effect, this fixes an issue that caused
us not to call verify(Function &) on unmaterialized functions from
verifyModule().

Differential Revision: http://reviews.llvm.org/D21042

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271956 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Verifier.cpp
unittests/IR/MetadataTest.cpp