aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2012-11-01 23:55:47 +0000
committerQuentin Colombet <qcolombet@apple.com>2012-11-01 23:55:47 +0000
commitaee56faf90c04a75d9c432a92a8fdd2c875559a7 (patch)
tree7b16df6adbff6dc5ec1327e7046b2b137f7a9cd1 /lib/CodeGen/CodeGenModule.cpp
parent7edf9e38b91917b661277601c0e448eef0eb2b56 (diff)
Update the front end to use minsize attribute
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167266 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--lib/CodeGen/CodeGenModule.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp
index 9617de8eb7..11991124ee 100644
--- a/lib/CodeGen/CodeGenModule.cpp
+++ b/lib/CodeGen/CodeGenModule.cpp
@@ -583,6 +583,9 @@ void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D,
if (D->hasAttr<ColdAttr>())
F->addFnAttr(llvm::Attributes::OptimizeForSize);
+ if (D->hasAttr<MinSizeAttr>())
+ F->addFnAttr(llvm::Attributes::MinSize);
+
if (isa<CXXConstructorDecl>(D) || isa<CXXDestructorDecl>(D))
F->setUnnamedAddr(true);