Added support in FunctionAttrs for adding relevant function/argument attributes for...
authorMichael Gottesman <mgottesman@apple.com>
Wed, 3 Jul 2013 04:00:54 +0000 (04:00 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Wed, 3 Jul 2013 04:00:54 +0000 (04:00 +0000)
commit2db11161a8b3e53e4bfdacc6f969cad1abaf1747
tree1f39fbe7e4fcc74fc8b71038ab1a0e68d52d76aa
parentf7459c740b623c98e11b586a8034cd7b01df8e1b
Added support in FunctionAttrs for adding relevant function/argument attributes for the posix call gettimeofday.

This implies annotating it as nounwind and its arguments as nocapture. To be
conservative, we do not annotate the arguments with noalias since some platforms
do not have restrict on the declaration for gettimeofday.

llvm-svn: 185502
llvm/lib/Transforms/IPO/FunctionAttrs.cpp
llvm/test/Transforms/FunctionAttrs/annotate-1.ll