Modified demo to work with non const Type parameters as is required by new
authorGarrison Venn <gvenn.cfe.dev@gmail.com>
Mon, 11 Jul 2011 16:31:53 +0000 (16:31 +0000)
committerGarrison Venn <gvenn.cfe.dev@gmail.com>
Mon, 11 Jul 2011 16:31:53 +0000 (16:31 +0000)
commit6e6cdd00aaca083779eb70dc238779935da6b9c8
treeed0b5c6ce5cbe71752791ccc3f8e253860829eb5
parentfecdc983908169a804960ec97a6d5a518d1fa72c
Modified demo to work with non const Type parameters as is required by new
type system. However most of these modifications were due to IRBuilder
(IRBuilderBase), not having been modified to NOT return such const qualified
free types. If IRBuilder does not change, as can also be seen in its
instruction creation methods, to use const free types, it may be useful to have
ExceptionDemo drop IRBuilder usage. Modifying builder.getInt32Ty() to
llvm::Type::getInt32Ty(builder.getContext()) is pretty ugly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134901 91177308-0d34-0410-b5e6-96231b3b80d8
examples/ExceptionDemo/ExceptionDemo.cpp