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)
commit6aaad8d88df396f3df3b85dcf9d4bbabd79c248f
tree7ef1dbc6326541b0652154b19f732fa1befa12df
parent6ac940db1981a3332ab1f167e46d43e3904e0a34
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.

llvm-svn: 243135
llvm/include/llvm/IR/DataLayout.h
llvm/lib/IR/DataLayout.cpp