and then dumping as tests. llvm-svn: 180010
Patch reviewed by Daniel Dunbar. It will be followed by additional cleanup patches. llvm-svn: 150664