Clean up SmallString a bit
authorDavid Blaikie <dblaikie@gmail.com>
Sun, 9 Mar 2014 06:17:01 +0000 (06:17 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sun, 9 Mar 2014 06:17:01 +0000 (06:17 +0000)
commited8ba2e58e6ad9069feeba7bfca60b8873d23743
tree7f341cfa44328fbb6456079421a9082486f16d92
parent873c5898895cd12713e4be6dc2f115418ac4c83e
Clean up SmallString a bit

Move a common utility (assign(iter, iter)) into SmallVector (some of the
others could be moved there too, but this one seemed particularly
generic) and replace repetitions overrides with using directives.

And simplify SmallVector::assign(num, element) while I'm here rather
than thrashing these files (that cause everyone to rebuild) again.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203374 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/SmallString.h
include/llvm/ADT/SmallVector.h
include/llvm/DebugInfo/DIContext.h
unittests/ADT/SmallStringTest.cpp
unittests/ADT/SmallVectorTest.cpp