[vmkit-commits] [vmkit] r67561 - /vmkit/trunk/lib/Mvm/Compiler/JIT.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Mon Mar 23 14:11:46 PDT 2009
Author: geoffray
Date: Mon Mar 23 16:11:46 2009
New Revision: 67561
URL: http://llvm.org/viewvc/llvm-project?rev=67561&view=rev
Log:
It's better if we also copy function attributes over....
Modified:
vmkit/trunk/lib/Mvm/Compiler/JIT.cpp
Modified: vmkit/trunk/lib/Mvm/Compiler/JIT.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/Mvm/Compiler/JIT.cpp?rev=67561&r1=67560&r2=67561&view=diff
==============================================================================
--- vmkit/trunk/lib/Mvm/Compiler/JIT.cpp (original)
+++ vmkit/trunk/lib/Mvm/Compiler/JIT.cpp Mon Mar 23 16:11:46 2009
@@ -331,7 +331,9 @@
const Function *SF = I; // SrcFunction
assert(SF->isDeclaration() &&
"Don't know how top copy functions with body");
- Function::Create(SF->getFunctionType(), GlobalValue::ExternalLinkage,
- SF->getName(), Dst);
+ Function* F = Function::Create(SF->getFunctionType(),
+ GlobalValue::ExternalLinkage,
+ SF->getName(), Dst);
+ F->setAttributes(SF->getAttributes());
}
}
More information about the vmkit-commits
mailing list