aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/c.cpp2
-rw-r--r--src/gc.cpp2
-rw-r--r--src/llvm.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/c.cpp b/src/c.cpp
index ff4f09a..fb330dc 100644
--- a/src/c.cpp
+++ b/src/c.cpp
@@ -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")
{
}
diff --git a/src/gc.cpp b/src/gc.cpp
index 4bae933..e6a296b 100644
--- a/src/gc.cpp
+++ b/src/gc.cpp
@@ -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;