Make specific ISA sub-modules private.

We don't want ISA-specific details exposed in the public Cretonne APIs.
This commit is contained in:
Jakob Stoklund Olesen
2018-02-21 12:06:58 -08:00
parent 8d388b2218
commit 2f58c371bc
2 changed files with 5 additions and 4 deletions

View File

@@ -86,6 +86,7 @@ def gen_getters(sgrp, fmt):
Emit getter functions for all the settings in fmt.
"""
fmt.doc_comment("User-defined settings.")
fmt.line('#[allow(dead_code)]')
with fmt.indented('impl Flags {', '}'):
fmt.doc_comment('Get a view of the boolean predicates.')
with fmt.indented(

View File

@@ -56,16 +56,16 @@ use isa::enc_tables::Encodings;
use std::fmt;
#[cfg(build_riscv)]
pub mod riscv;
mod riscv;
#[cfg(build_intel)]
pub mod intel;
mod intel;
#[cfg(build_arm32)]
pub mod arm32;
mod arm32;
#[cfg(build_arm64)]
pub mod arm64;
mod arm64;
pub mod registers;
mod encoding;