Move expect zig code out of utils

This commit is contained in:
Richard Feldman 2022-02-02 19:15:47 -05:00
parent 06203163eb
commit 9b05d8dd50
No known key found for this signature in database
GPG key ID: 7E4127D1E4241798
5 changed files with 164 additions and 149 deletions

View file

@ -192,7 +192,7 @@ fn create_llvm_module<'a>(
for function in FunctionIterator::from_module(module) {
let name = function.get_name().to_str().unwrap();
if name.starts_with("roc_builtins") {
if name.starts_with("roc_builtins.utils") {
if name.starts_with("roc_builtins.expect") {
function.set_linkage(Linkage::External);
} else {
function.set_linkage(Linkage::Internal);