diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-03-14 00:15:04 +0000 | 
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-14 00:15:04 +0000 | 
| commit | 29de588ac29cad5bfe96f4e66c225261cc87fed4 (patch) | |
| tree | 6f35dca7e587466ba6ec091625083dc650ae9765 | |
| parent | 69bd16d814fa55ea310e8bd70cc60cf116f3b684 (diff) | |
| download | bcm5719-llvm-29de588ac29cad5bfe96f4e66c225261cc87fed4.tar.gz bcm5719-llvm-29de588ac29cad5bfe96f4e66c225261cc87fed4.zip | |
Don't run simplify lib calls with -ffreestanding (fix for already
failing test case).
llvm-svn: 66991
| -rw-r--r-- | clang/Driver/clang.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp index 6d9aaa7f75b..a58e877f988 100644 --- a/clang/Driver/clang.cpp +++ b/clang/Driver/clang.cpp @@ -1203,7 +1203,7 @@ static void InitializeCompileOptions(CompileOptions &Opts) {    // FIXME: There are llvm-gcc options to control these selectively.    Opts.InlineFunctions = (Opts.OptimizationLevel > 1);    Opts.UnrollLoops = (Opts.OptimizationLevel > 1 && !OptSize); -  Opts.SimplifyLibCalls = !NoBuiltin; +  Opts.SimplifyLibCalls = !NoBuiltin && !Freestanding;  #ifdef NDEBUG    Opts.VerifyModule = 0; | 

