[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.
This commit is contained in:
River Riddle 2020-02-05 18:32:15 -08:00
parent 00b3d49d3a
commit 93dc8bd267
2 changed files with 6 additions and 0 deletions

View File

@ -59,6 +59,9 @@ protected:
return LLVM::ModuleTranslation::convertOperation(opInst, builder);
}
/// Allow access to the constructor.
friend LLVM::ModuleTranslation;
};
} // namespace

View File

@ -68,6 +68,9 @@ protected:
return LLVM::ModuleTranslation::convertOperation(opInst, builder);
}
/// Allow access to the constructor.
friend LLVM::ModuleTranslation;
};
} // namespace