moved declareFunction to Rllvm from RLLVMCompile