OSDN Git Service

Implement a few missing xforms: printf("foo\n") -> puts. printf("x") -> putchar
authorChris Lattner <sabre@nondot.org>
Sat, 14 Apr 2007 01:17:48 +0000 (01:17 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 14 Apr 2007 01:17:48 +0000 (01:17 +0000)
commit35b9b49fd17fe8600d5a6ac25d812694af7b1051
tree5eb065dd446ad1a1082b411c55842f82336eb773
parent9a34ecd82d32ca8a3e983af30c037de703385d08
Implement a few missing xforms: printf("foo\n") -> puts.  printf("x") -> putchar
printf("") -> noop.  Still need to do the xforms for fprintf.

This implements Transforms/SimplifyLibCalls/Printf.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35984 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/SimplifyLibCalls.cpp