In C++, code is not allowed to call main. In C it is, this
authorChris Lattner <sabre@nondot.org>
Thu, 3 Sep 2009 05:19:59 +0000 (05:19 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 3 Sep 2009 05:19:59 +0000 (05:19 +0000)
commite9f9a7e10ef6c159e6afb9f230ce216828d3282a
tree21d92d694370065da9d9bcf0fd131ad293bc2f7d
parent47548d33654a9b747adabfc20a88babeeede2912
In C++, code is not allowed to call main.  In C it is, this
simplifylibcalls optimization is thus valid for C++ but not C.
It's not important enough to worry about for C++ apps, so just
remove it.

rdar://7191924

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80887 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SimplifyLibCalls.cpp
test/Transforms/SimplifyLibCalls/ExitInMain.ll [deleted file]