CodeGen: convert CCState interface to using ArrayRefs