Simplify the PatternMatch unittest by giving it a module, function, and
authorChandler Carruth <chandlerc@gmail.com>
Sun, 5 Jan 2014 02:07:20 +0000 (02:07 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 5 Jan 2014 02:07:20 +0000 (02:07 +0000)
commit478ea5d37d15733feee5ea50f689302e0d44cebb
tree314e5eb67d7919b70f45f6506bdbca82945930cc
parent4a816471f527b90464806892feeecc242491a459
Simplify the PatternMatch unittest by giving it a module, function, and
basic block to hold instructions, and managing all of their lifetimes in
a fixture. This makes it easy to sink the expectations into the test
cases themselves which also makes things a bit more explicit and clearer
IMO.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198532 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/IR/PatternMatch.cpp