diff options
| author | Diego Novillo <dnovillo@google.com> | 2013-05-24 20:18:15 +0000 |
|---|---|---|
| committer | Diego Novillo <dnovillo@google.com> | 2013-05-24 20:18:15 +0000 |
| commit | d27e5cbff3c98fa3f623c75dce7165176c1f98a5 (patch) | |
| tree | 339bfee59dd166e1425089c9380b476e2030e67a /lib/CodeGen/CGExpr.cpp | |
| parent | 1e4112d1ba94ceacb204857dc1ad97eae3234d26 (diff) | |
| download | clang-d27e5cbff3c98fa3f623c75dce7165176c1f98a5.tar.gz clang-d27e5cbff3c98fa3f623c75dce7165176c1f98a5.tar.bz2 clang-d27e5cbff3c98fa3f623c75dce7165176c1f98a5.tar.xz | |
[PATCH] Generate cold attribute for functions marked __atribute__((cold))
This removes a FIXME in CodeGenModule::SetLLVMFunctionAttributesForDefinition.
When a function is declared cold we can now generate the IR attribute in
addition to marking the function to be optimized for size.
I tried adding a separate CHECK in the existing test, but it was
failing. I suppose CHECK matches one line exactly once? This would be
a problem if the attributes are listed in a different order, though they
seem to be sorted.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182666 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
