HomePhabricator

[IndexStore] Keep indexstore_symbol_role_t enum bits fixed
8147e42b04acUnpublished

Authored by nathawes on Aug 23 2018, 2:27 PM.

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

[IndexStore] Keep indexstore_symbol_role_t enum bits fixed

They were previously required to exactly match the SymbolRole enum, and shifted
when a new Undefined role was added there. The indexstore values were intended
to be stable though, so this patch implements mapping functions between the two,
and restores the indexstore bits to their original values, assigning 'undefined'
the next available bit instead of matching its value in SymbolRole.

Also fixes a few places where the conversion functions weren't being called.

apple-llvm-split-commit: e60d01310ee04a3858f4ffff21a72ee816c4df50
apple-llvm-split-dir: clang/

Details

Committed
nathawesAug 23 2018, 2:27 PM
Parents
rG421e4bcf9a17: Propagating prior merge from 'llvm.org/master'.
Branches
Unknown
Tags
Unknown