[mlir] Add explicit friendship to LLVM::ModuleTranslation to derived
authorRiver Riddle <riddleriver@gmail.com>
Thu, 6 Feb 2020 02:32:15 +0000 (18:32 -0800)
committerRiver Riddle <riddleriver@gmail.com>
Thu, 6 Feb 2020 02:34:44 +0000 (18:34 -0800)
commit93dc8bd26708ba5fb8b83b65c40ed840ef76730d
tree3aedff0209972d62be9970f1ae3a21e3503cb0f6
parent00b3d49d3a86490f0596100b23cd2c3a49334c75
[mlir] Add explicit friendship to LLVM::ModuleTranslation to derived
classes.

This allows for the `LLVM::ModuleTranslation::translateModule` to properly access the constructors of the derived classes.
mlir/lib/Target/LLVMIR/ConvertToNVVMIR.cpp
mlir/lib/Target/LLVMIR/ConvertToROCDLIR.cpp