Set DataLayout in codegen

This is the replacement for TargetData in LLVM 3.2+
Merge pull request #3970 from simonster/datalayout

Set DataLayout in codegen