提交 c7813ff7 编写于 作者: V Vadim Petrochenkov

llvm: Expose tiny code model to users

上级 8858a435
......@@ -21,7 +21,7 @@ specification.
Supported values for this option are:
<!-- - `tiny` - Tiny code model. -->
- `tiny` - Tiny code model.
- `small` - Small code model. This is the default model for majority of supported targets.
- `kernel` - Kernel code model.
- `medium` - Medium code model.
......
......@@ -208,7 +208,7 @@ fn print(&self, req: PrintRequest, sess: &Session) {
}
PrintRequest::CodeModels => {
println!("Available code models:");
for name in &["small", "kernel", "medium", "large"] {
for name in &["tiny", "small", "kernel", "medium", "large"] {
println!(" {}", name);
}
println!();
......
......@@ -322,7 +322,7 @@ impl FromStr for CodeModel {
fn from_str(s: &str) -> Result<CodeModel, ()> {
Ok(match s {
// "tiny" => CodeModel::Tiny, // Not exposed to users right now.
"tiny" => CodeModel::Tiny,
"small" => CodeModel::Small,
"kernel" => CodeModel::Kernel,
"medium" => CodeModel::Medium,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册