aboutsummaryrefslogtreecommitdiffstats
path: root/llvm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm.cpp')
-rw-r--r--llvm.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm.cpp b/llvm.cpp
index 65632a4..1d97b96 100644
--- a/llvm.cpp
+++ b/llvm.cpp
@@ -96,11 +96,8 @@ struct LLVMEngine : public Engine {
FunctionType* fT = FunctionType::get(llType(retT), cprot, false);
Function* f = Function::Create(fT, linkage, name, module);
- if (f->getName() != name) {
- cenv.out << "DIFFERENT NAME: " << f->getName() << endl;
- /*f->eraseFromParent();
- throw Error(Cursor(), (format("function `%1%' redefined") % name).str());*/
- }
+ // Note f->getName() may be different from name
+ // however LLVM chooses to mangle is fine, we keep a pointer
// Set argument names in generated code
Function::arg_iterator a = f->arg_begin();