commit | c369d73405c32b78bff67ea2ca43c9e827d4b581 | [log] [tgz] |
---|---|---|
author | Daniel Dunbar <daniel@zuster.org> | Tue Oct 27 19:48:08 2009 +0000 |
committer | Daniel Dunbar <daniel@zuster.org> | Tue Oct 27 19:48:08 2009 +0000 |
tree | 9c55fdcbca9bd88a09de37cb720d55258c0b4dba | |
parent | 59ca7f1a1e37fad29a59bc3089252172eda264e9 [diff] [blame] |
Set OptimizeForSize LLVM function attribute with -Os. llvm-svn: 85278
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index 78655168..06cd05c 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/lib/CodeGen/CGCall.cpp
@@ -441,6 +441,8 @@ RetAttrs |= llvm::Attribute::NoAlias; } + if (CompileOpts.OptimizeSize) + FuncAttrs |= llvm::Attribute::OptimizeForSize; if (CompileOpts.DisableRedZone) FuncAttrs |= llvm::Attribute::NoRedZone; if (CompileOpts.NoImplicitFloat)