Use a sorted array to store the information about a few address spaces.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 26 Feb 2014 16:58:35 +0000 (16:58 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 26 Feb 2014 16:58:35 +0000 (16:58 +0000)
commite3561972d45633cee705084ce1e26c4ecbbe8d43
treec4799fe481e9096cd9f2ccfd65a86db37b4ebb76
parent3c4c95e522ab2efca47df170d38bc2c19aa173ad
Use a sorted array to store the information about a few address spaces.

We don't have any test with more than 6 address spaces, so a DenseMap is
probably not the correct answer.

An unsorted array would also be OK, but we have to sort it for printing anyway.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202275 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DataLayout.h
lib/IR/DataLayout.cpp