Remove crate visibility usage in compiler
This commit is contained in:
@@ -330,7 +330,7 @@ pub unsafe fn create_module<'ll>(
|
||||
}
|
||||
|
||||
impl<'ll, 'tcx> CodegenCx<'ll, 'tcx> {
|
||||
crate fn new(
|
||||
pub(crate) fn new(
|
||||
tcx: TyCtxt<'tcx>,
|
||||
codegen_unit: &'tcx CodegenUnit<'tcx>,
|
||||
llvm_module: &'ll crate::ModuleLlvm,
|
||||
@@ -447,7 +447,7 @@ impl<'ll, 'tcx> CodegenCx<'ll, 'tcx> {
|
||||
}
|
||||
}
|
||||
|
||||
crate fn statics_to_rauw(&self) -> &RefCell<Vec<(&'ll Value, &'ll Value)>> {
|
||||
pub(crate) fn statics_to_rauw(&self) -> &RefCell<Vec<(&'ll Value, &'ll Value)>> {
|
||||
&self.statics_to_rauw
|
||||
}
|
||||
|
||||
@@ -599,7 +599,7 @@ impl<'ll, 'tcx> MiscMethods<'tcx> for CodegenCx<'ll, 'tcx> {
|
||||
}
|
||||
|
||||
impl<'ll> CodegenCx<'ll, '_> {
|
||||
crate fn get_intrinsic(&self, key: &str) -> (&'ll Type, &'ll Value) {
|
||||
pub(crate) fn get_intrinsic(&self, key: &str) -> (&'ll Type, &'ll Value) {
|
||||
if let Some(v) = self.intrinsics.borrow().get(key).cloned() {
|
||||
return v;
|
||||
}
|
||||
@@ -890,7 +890,7 @@ impl<'ll> CodegenCx<'ll, '_> {
|
||||
None
|
||||
}
|
||||
|
||||
crate fn eh_catch_typeinfo(&self) -> &'ll Value {
|
||||
pub(crate) fn eh_catch_typeinfo(&self) -> &'ll Value {
|
||||
if let Some(eh_catch_typeinfo) = self.eh_catch_typeinfo.get() {
|
||||
return eh_catch_typeinfo;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user