HotColdSplitting: check that target supports cold calling convention
authorSebastian Pop <sebpop@gmail.com>
Mon, 10 Sep 2018 15:08:02 +0000 (15:08 +0000)
committerSebastian Pop <sebpop@gmail.com>
Mon, 10 Sep 2018 15:08:02 +0000 (15:08 +0000)
commita1f20fcc9633313fb7aeda859d8d25bcd14c930e
tree2321e15000a13e42430aaec6552e9692baf4c3ee
parent6284b54ccd8b276cd46673d7df9fb1125c51a352
HotColdSplitting: check that target supports cold calling convention

Before tagging a function with coldcc make sure the target supports cold calling
convention. Without this patch HotColdSplitting pass fails on aarch64 with:

  fatal error: error in backend: Unsupported calling convention.

llvm-svn: 341838
llvm/lib/Transforms/IPO/HotColdSplitting.cpp