[llvm-commits] [PATCH] Replace uses of strcpy and memcpy in llvm-nm.cpp
Dmitri Gribenko
gribozavr at gmail.com
Sat Oct 6 06:37:23 PDT 2012
On Wed, Oct 3, 2012 at 9:55 AM, Martinez, Javier E
<javier.e.martinez at intel.com> wrote:
> Hello,
>
> This patch is to remove the use of strcpy in llvm-nm.cpp and replace it with
> format objects. Please review and commit if it looks good.
Saving format objects somewhere instead of using them directly with
the raw_ostream contradicts the design intent of raw_ostream and makes
the code more complicated than it was before.
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
More information about the llvm-commits
mailing list