Merge pull request #504 from dbabokin/attr

Adding missing attributes on exported functions
This commit is contained in:
jbrodman
2013-05-24 07:38:03 -07:00

View File

@@ -459,6 +459,8 @@ Function::GenerateIR() {
appFunction->setDoesNotThrow();
#endif
g->target->markFuncWithTargetAttr(appFunction);
if (appFunction->getName() != functionName) {
// this was a redefinition for which we already emitted an
// error, so don't worry about this one...