Avoid using static unordered_map (#1304)
authorLei Zhang <antiagainst@google.com>
Thu, 15 Feb 2018 15:19:15 +0000 (10:19 -0500)
committerGitHub <noreply@github.com>
Thu, 15 Feb 2018 15:19:15 +0000 (10:19 -0500)
commitf3a10470d3426286d44ac471f45cd0a51be3e51c
treefa52977c60c4b694dabba67efc658374c4f99ede
parent32a8e04c7dd4dc7139d73b8e1081fd81e08cc66f
Avoid using static unordered_map (#1304)

unordered_map is not POD. Using it as static may cause problems
when operator new() and operator delete() is customized.

Also changed some function signatures to use const char* instead
of std::string, which will give caller the flexibility to avoid
creating a std::string.
source/enum_string_mapping.cpp
source/enum_string_mapping.h
source/opt/feature_manager.cpp
source/validate.cpp
source/validate_instruction.cpp
test/enum_string_mapping_test.cpp
utils/generate_grammar_tables.py