Add a copy constructor to StringMap
authorHal Finkel <hfinkel@anl.gov>
Wed, 30 Mar 2016 19:54:56 +0000 (19:54 +0000)
committerHal Finkel <hfinkel@anl.gov>
Wed, 30 Mar 2016 19:54:56 +0000 (19:54 +0000)
commit38bf13d02ce7dda0a9fc77c94457da0be8cf5c1b
treefe83c137628fd918bdeac3b777dbc9c1d61af3ed
parent4709190376d2d29f5b26a69f540feac31444080a
Add a copy constructor to StringMap

There is code under review that requires StringMap to have a copy constructor,
and this makes StringMap more consistent with our other containers (like
DenseMap) that have copy constructors.

Differential Revision: http://reviews.llvm.org/D18506

llvm-svn: 264906
llvm/include/llvm/ADT/StringMap.h
llvm/unittests/ADT/StringMapTest.cpp