diff options
Diffstat (limited to 'llvm.cpp')
-rw-r--r-- | llvm.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |