Ensure that ast_type always has type_name set
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 15 Mar 2010 21:15:15 +0000 (14:15 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 15 Mar 2010 21:18:32 +0000 (14:18 -0700)
commit7f9d30974317a4050fb8990ce1a3eebbb190483a
treec562a07c62bc25580ca684f62c98f74aef5d5c90
parentbbddcb3092dbb80081d9d4d183cd7b6f3804b1d8
Ensure that ast_type always has type_name set

For built-in types, type_name would be NULL.  This ensures that
type_name is set even for the built-in types.  This simplifies code in
a few places and centralizes the name setting code.
ast.h
ast_to_hir.cpp
ast_type.cpp