PR3589: Don't simplify libcalls with -ffreestanding.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64599 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index 2f7ce69..d1ef871 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -1271,7 +1271,7 @@
   // FIXME: There are llvm-gcc options to control these selectively.
   Opts.InlineFunctions = (Opts.OptimizationLevel > 1);
   Opts.UnrollLoops = (Opts.OptimizationLevel > 1 && !OptSize);
-  Opts.SimplifyLibCalls = 1;
+  Opts.SimplifyLibCalls = !Freestanding;
 
 #ifdef NDEBUG
   Opts.VerifyModule = 0;