summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/MemorySSA.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-02-07 00:36:33 +0000
committerEric Fiselier <eric@efcs.ca>2016-02-07 00:36:33 +0000
commit1b2e4ffa581decb6c3f06781c629343e718c3d59 (patch)
tree869c820baa9b728c9f21ccf4dced5bbe71a0df0f /llvm/lib/Transforms/Utils/MemorySSA.cpp
parent5e03c655a3bea99011cbaa9ecafe9d91765c3d32 (diff)
downloadbcm5719-llvm-1b2e4ffa581decb6c3f06781c629343e718c3d59.tar.gz
bcm5719-llvm-1b2e4ffa581decb6c3f06781c629343e718c3d59.zip
Cleanup node-type handling in the unordered containers
This patch is the first in a series of patches that's meant to better support unordered_map. unordered_map has a special "value_type" that differs from pair<const Key, Value>. In order to meet the EmplaceConstructible and CopyInsertable requirements we need to teach __hash_table about this special value_type. This patch creates a "__hash_node_types" traits class that contains all of the typedefs needed by the unordered containers and it's iterators. These typedefs include ones for each node type and node pointer type, as well as special typedefs for "unordered_map"'s value type. As a result of this change all of the unordered containers now all support incomplete types. As a drive-by fix I changed the difference_type in __hash_table to always be ptrdiff_t. There is a corresponding change to size_type but it cannot take affect until an ABI break. This patch will be followed up shortly with fixes for various unordered_map fixes. llvm-svn: 260012
Diffstat (limited to 'llvm/lib/Transforms/Utils/MemorySSA.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud