We need to hook up here to get it working with the new PM. Add a test while here (and remove a typo). llvm-svn: 290350