Instantiate dependent attributes when instantiating templates.

llvm-svn: 148592
13 files changed