aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-09-11 00:32:40 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-09-11 00:32:40 -0400
commit67735c6f1557092efe6e8c1712445c30655fe283 (patch)
tree82eaedf770f3893192bb251bbae0db470762f230 /src/ir.cpp
parent5ee5933ade09c535bd1806d91cb606f49d07acea (diff)
downloadzig-67735c6f1557092efe6e8c1712445c30655fe283.tar.gz
zig-67735c6f1557092efe6e8c1712445c30655fe283.zip
ability to disable cache. off by default except for...
...zig run, zig build, compiler_rt.a, and builtin.a
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index 22d9a9bc49..bfe21f974d 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -16277,7 +16277,7 @@ static ZigType *ir_analyze_instruction_import(IrAnalyze *ira, IrInstructionImpor
return ira->codegen->builtin_types.entry_namespace;
}
- if ((err = cache_add_file_fetch(&ira->codegen->cache_hash, resolved_path, import_code))) {
+ if ((err = file_fetch(ira->codegen, resolved_path, import_code))) {
if (err == ErrorFileNotFound) {
ir_add_error_node(ira, source_node,
buf_sprintf("unable to find '%s'", buf_ptr(import_target_path)));
@@ -18108,7 +18108,7 @@ static ZigType *ir_analyze_instruction_embed_file(IrAnalyze *ira, IrInstructionE
// load from file system into const expr
Buf *file_contents = buf_alloc();
int err;
- if ((err = cache_add_file_fetch(&ira->codegen->cache_hash, &file_path, file_contents))) {
+ if ((err = file_fetch(ira->codegen, &file_path, file_contents))) {
if (err == ErrorFileNotFound) {
ir_add_error(ira, instruction->name, buf_sprintf("unable to find '%s'", buf_ptr(&file_path)));
return ira->codegen->builtin_types.entry_invalid;