summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-02-10 20:46:23 +0000
committerEric Fiselier <eric@efcs.ca>2016-02-10 20:46:23 +0000
commit75d0dcfde74dcdb2aacfbfa0a52d8bf72416336b (patch)
tree516f774dc7c88233dfdd5456b3db382b8bc2d64d /llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
parentd8a985ec7ce0d6a5d0baa9bfc0ed421e5c3eaf02 (diff)
downloadbcm5719-llvm-75d0dcfde74dcdb2aacfbfa0a52d8bf72416336b.tar.gz
bcm5719-llvm-75d0dcfde74dcdb2aacfbfa0a52d8bf72416336b.zip
Recommit r260012 - Cleanup node-type handling in the unordered containers.
This time I kept <ext/hash_map> working! 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 bugs and problems. llvm-svn: 260431
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud