diff options
-rw-r--r-- | src/c.cpp | 2 | ||||
-rw-r--r-- | src/gc.cpp | 2 | ||||
-rw-r--r-- | src/llvm.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -37,7 +37,7 @@ struct CEngine : public Engine { : out( "#include <stdint.h>\n" "#include <stdbool.h>\n" - "void* resp_gc_allocate(unsigned size, uint8_t tag);\n\n") + "void* __resp_alloc(unsigned size, uint8_t tag);\n\n") { } @@ -97,7 +97,7 @@ GC::collect(const Roots& roots) extern "C" { void* -resp_gc_allocate(unsigned size) +__resp_alloc(unsigned size) { static const size_t COLLECT_SIZE = 8 * 1024 * 1024; // 8 MiB diff --git a/src/llvm.cpp b/src/llvm.cpp index 28d6f36..437bd40 100644 --- a/src/llvm.cpp +++ b/src/llvm.cpp @@ -125,7 +125,7 @@ LLVMEngine::LLVMEngine() FunctionType* funcT = FunctionType::get( PointerType::get(Type::getInt8Ty(context), 0), argsT, false); alloc = Function::Create( - funcT, Function::ExternalLinkage, "resp_gc_allocate", module); + funcT, Function::ExternalLinkage, "__resp_alloc", module); // Build Object type (tag only, binary compatible with any constructed thing) vector<const Type*> ctypes; |