From 4e172067b2237dbe053c95a89945e03f70b75dd6 Mon Sep 17 00:00:00 2001 From: Quentin Colombet Date: Thu, 1 Nov 2012 23:55:47 +0000 Subject: Update the front end to use minsize attribute llvm-svn: 167266 --- clang/lib/CodeGen/CodeGenModule.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 9617de8..11991124 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -583,6 +583,9 @@ void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D, if (D->hasAttr()) F->addFnAttr(llvm::Attributes::OptimizeForSize); + if (D->hasAttr()) + F->addFnAttr(llvm::Attributes::MinSize); + if (isa(D) || isa(D)) F->setUnnamedAddr(true); -- cgit v1.1