HomePhabricator

Replaces uses of Fixnum with llvm::PointerEmbeddedInt.

Authored by jordan_rose on Feb 22 2016, 7:38 PM.

Description

Replaces uses of Fixnum with llvm::PointerEmbeddedInt.

The two types are nearly identical, and Fixnum is only in the Swift branches of LLVM,
not in mainline LLVM. The main change here is that PointerEmbeddedInt's representation
is always a pointer, which means sizeof and anything depending on it give you the size
of a pointer rather than the smallest primitive integral type that can hold the number.
But for serialization purposes being explicit is probably a good thing, although it
does mean more coordination across files.

apple-llvm-split-commit: 6ce47441485dc39046bcca06b6692e80d8c863b7
apple-llvm-split-dir: clang/

Details