Introduction of improved switch lowering. This includes the high level analysis of switches, the x86 lowering, the repointing of targets in jump tables and ASM emission of jump tables. The technique uses jump tables, range test and binary search with worst case O(lg n) which improves the previous worst case of O(n) from a sequential search. Use is hidden by the --adv-switch flag as the IAS emission still needs to be implemented. BUG=None R=jvoung@chromium.org, stichnot@chromium.org Review URL: https://codereview.chromium.org/1234803007.
diff --git a/src/IceELFObjectWriter.h b/src/IceELFObjectWriter.h index 0562c9b..c2d7157 100644 --- a/src/IceELFObjectWriter.h +++ b/src/IceELFObjectWriter.h
@@ -146,7 +146,8 @@ void assignRelLinkNum(SizeT SymTabNumber, RelSectionList &RelSections); /// Helper function for writeDataSection. Writes a data section of type - /// SectionType, given the global variables Vars belonging to that SectionType. + /// SectionType, given the global variables Vars belonging to that + /// SectionType. void writeDataOfType(SectionType SectionType, const VariableDeclarationList &Vars, FixupKind RelocationKind,