aboutsummaryrefslogtreecommitdiffstats
path: root/llvm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm.cpp')
-rw-r--r--llvm.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm.cpp b/llvm.cpp
index b07624d..6f81f94 100644
--- a/llvm.cpp
+++ b/llvm.cpp
@@ -166,8 +166,9 @@ compileFunction(CEnv& cenv, const std::string& name, const Type* retT, const ATu
Function* f = Function::Create(fT, linkage, name, llengine(cenv)->module);
if (f->getName() != name) {
- f->eraseFromParent();
- throw Error(loc, (format("function `%1%' redefined") % name).str());
+ cenv.out << "DIFFERENT NAME: " << f->getName() << endl;
+ /*f->eraseFromParent();
+ throw Error(loc, (format("function `%1%' redefined") % name).str());*/
}
// Set argument names in generated code