Reapply r176381, writing the CHECKs in a more forgiving manner to account for
running llvm-objdump on Darwin.