IR: Clean up some duplicated code in ConstantDataSequential creation. NFC
authorJustin Bogner <mail@justinbogner.com>
Tue, 1 Dec 2015 20:20:49 +0000 (20:20 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 1 Dec 2015 20:20:49 +0000 (20:20 +0000)
commitfc16153e104c53dcfd54e79eee6549820a8a12f4
treeb36a24354baf6bd6a559592d13d215ea89d77a35
parente6b26fa8adb7f932fabb9880b7a84b2ab1370b8c
IR: Clean up some duplicated code in ConstantDataSequential creation. NFC

ConstantDataArray::getImpl and ConstantDataVector::getImpl had a lot
of copy pasta in how they handled sequences of constants. Break that
out into a couple of simple functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254456 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Constants.cpp