Add const to a bunch of Type* in DataLayout. NFC.
authorPete Cooper <peter_cooper@apple.com>
Fri, 24 Jul 2015 18:29:09 +0000 (18:29 +0000)
committerPete Cooper <peter_cooper@apple.com>
Fri, 24 Jul 2015 18:29:09 +0000 (18:29 +0000)
commitc653b442761c46b39e62d9a66f08bed6eb50bd2e
tree2bc188dea2315cce7fad751213af2c84a51b3462
parenta012f0dcc44c9ed8d5ca88320cea07e24baab93b
Add const to a bunch of Type* in DataLayout.  NFC.

Almost all methods in DataLayout took mutable pointers but didn't need to.
These were only accessing constant methods of the types, or using the Type*
to key a map.  Neither of these needs a mutable pointer.

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