changes to make codegen.cpp build with latest llvm 3.6

cc: @Keno