Apply changes to migrate to llvm upstream r135568.

- Remove the const qualifier of llvm::Type and
  llvm::PointerType due to the API change.

- Update the relocation model setup code, since
  llvm::TargetMachine changes the API.

- Qualify dyn_cast with llvm namespace.

Change-Id: I4820fb86effc3a62569e19a6a8753ba9e960f6b2
6 files changed