Restore some things

This commit is contained in:
Richard Feldman 2020-04-26 08:59:52 -04:00
parent 511c7b7a21
commit a2e6c4ba12
3 changed files with 5 additions and 5 deletions

View file

@ -26,7 +26,7 @@ use roc_types::subs::{VarStore, Variable};
/// lookup (if the bounds check passed). That internal function is hardcoded in code gen, /// lookup (if the bounds check passed). That internal function is hardcoded in code gen,
/// which works fine because it doesn't involve any open tag unions. /// which works fine because it doesn't involve any open tag unions.
pub fn builtin_defs(var_store: &VarStore) -> Vec<Def> { pub fn builtin_defs(var_store: &VarStore) -> Vec<Def> {
vec![/*list_get(var_store),*/ list_first(var_store)] vec![list_get(var_store), list_first(var_store)]
} }
/// List.get : List elem, Int -> Result elem [ OutOfBounds ]* /// List.get : List elem, Int -> Result elem [ OutOfBounds ]*

View file

@ -105,7 +105,7 @@ macro_rules! assert_llvm_evals_to {
builder.build_return(Some(&ret)); builder.build_return(Some(&ret));
// Uncomment this to see the module's un-optimized LLVM instruction output: // Uncomment this to see the module's un-optimized LLVM instruction output:
env.module.print_to_stderr(); // env.module.print_to_stderr();
if main_fn.verify(true) { if main_fn.verify(true) {
fpm.run_on(&main_fn); fpm.run_on(&main_fn);
@ -419,7 +419,7 @@ macro_rules! assert_evals_to {
assert_llvm_evals_to!($src, $expected, $ty, (|val| val)); assert_llvm_evals_to!($src, $expected, $ty, (|val| val));
} }
{ {
// assert_opt_evals_to!($src, $expected, $ty, (|val| val)); assert_opt_evals_to!($src, $expected, $ty, (|val| val));
} }
}; };
($src:expr, $expected:expr, $ty:ty, $transform:expr) => { ($src:expr, $expected:expr, $ty:ty, $transform:expr) => {
@ -428,7 +428,7 @@ macro_rules! assert_evals_to {
assert_llvm_evals_to!($src, $expected, $ty, $transform); assert_llvm_evals_to!($src, $expected, $ty, $transform);
} }
{ {
// assert_opt_evals_to!($src, $expected, $ty, $transform); assert_opt_evals_to!($src, $expected, $ty, $transform);
} }
}; };
} }

View file

@ -642,7 +642,7 @@ define_builtins! {
10 LIST_LEN: "len" 10 LIST_LEN: "len"
11 LIST_FOLDL: "foldl" 11 LIST_FOLDL: "foldl"
12 LIST_FOLDR: "foldr" 12 LIST_FOLDR: "foldr"
13 LIST_GET_UNSAFE: "getUnsafe" 13 LIST_GET_UNSAFE: "#getUnsafe"
14 LIST_CONCAT: "concat" 14 LIST_CONCAT: "concat"
15 LIST_FIRST: "first" 15 LIST_FIRST: "first"
16 LIST_FIRST_ARG: "first#list" 16 LIST_FIRST_ARG: "first#list"