std: even more efficient inline assembly

This commit is contained in:
Andrew Kelley
2015-12-15 02:47:39 -07:00
parent 673d638070
commit 1f48b626a1
4 changed files with 8 additions and 15 deletions

View File

@@ -1611,7 +1611,7 @@ static ImportTableEntry *codegen_add_code(CodeGen *g, Buf *src_dirname, Buf *src
assert(proto_node->type == NodeTypeFnProto);
Buf *proto_name = &proto_node->data.fn_proto.name;
bool is_exported = (proto_node->data.fn_proto.visib_mod == FnProtoVisibModExport);
bool is_exported = (proto_node->data.fn_proto.visib_mod != FnProtoVisibModPrivate);
if (buf_eql_str(proto_name, "main") && is_exported) {
g->insert_bootstrap_code = true;