[Refactoring] Turn IrDsymbol flags into an enum value