mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 22:46:05 +00:00
[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:
parent
00b3d49d3a
commit
93dc8bd267
@ -59,6 +59,9 @@ protected:
|
||||
|
||||
return LLVM::ModuleTranslation::convertOperation(opInst, builder);
|
||||
}
|
||||
|
||||
/// Allow access to the constructor.
|
||||
friend LLVM::ModuleTranslation;
|
||||
};
|
||||
} // namespace
|
||||
|
||||
|
@ -68,6 +68,9 @@ protected:
|
||||
|
||||
return LLVM::ModuleTranslation::convertOperation(opInst, builder);
|
||||
}
|
||||
|
||||
/// Allow access to the constructor.
|
||||
friend LLVM::ModuleTranslation;
|
||||
};
|
||||
} // namespace
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user