summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Instructions.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-11-01 00:54:57 +0000
committerTed Kremenek <kremenek@apple.com>2007-11-01 00:54:57 +0000
commitdf0768e1b1d3cc9584179d170a7fb0359c78d00d (patch)
tree0751bf1b11cd6e67aac940bf841347fd0a54e067 /llvm/lib/VMCore/Instructions.cpp
parent41b7c6b250560d5015defaa5c112f355c2e91664 (diff)
downloadbcm5719-llvm-df0768e1b1d3cc9584179d170a7fb0359c78d00d.tar.gz
bcm5719-llvm-df0768e1b1d3cc9584179d170a7fb0359c78d00d.zip
Added typedef "value_type" to DenseMap (similar typedef appears in std::map).
Added method FindAndConstruct() to DenseMap, which does the same thing as operator[], except that it refers value_type& (a reference to both the key and mapped data pair). This method is useful for clients that wish to access the stored key value, as opposed to the key used to do the actual lookup (these need not always be the same). Redefined operator[] to use FindAndConstruct() (same logic). llvm-svn: 43594
Diffstat (limited to 'llvm/lib/VMCore/Instructions.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud