update to use the new BitcodeCursor readRecord that takes a StringRef blob parameter,
and adopt "advance" in more places.