summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/AsmWriter.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2018-08-17 16:53:47 +0000
committerTeresa Johnson <tejohnson@google.com>2018-08-17 16:53:47 +0000
commitcb9a82fc7bbe3210d745e26d3e4c5fb5c7002c72 (patch)
treef5fe3e7caa77a24348faef8f547e3a96478c74ca /llvm/lib/IR/AsmWriter.cpp
parent3461bfaa9cc7766330b3539b02b65c0ebf85755a (diff)
downloadbcm5719-llvm-cb9a82fc7bbe3210d745e26d3e4c5fb5c7002c72.tar.gz
bcm5719-llvm-cb9a82fc7bbe3210d745e26d3e4c5fb5c7002c72.zip
[ThinLTO] Add option for printing import failure reasons
Summary: Adds the option for the printing of summary information about functions considered but rejected for importing during the thin link. Reviewers: davidxl Subscribers: mehdi_amini, inglorion, eraman, steven_wu, dexonsmith, llvm-commits Differential Revision: https://reviews.llvm.org/D50881 llvm-svn: 340047
Diffstat (limited to 'llvm/lib/IR/AsmWriter.cpp')
-rw-r--r--llvm/lib/IR/AsmWriter.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp
index fc5eca19c84..27894c50bc9 100644
--- a/llvm/lib/IR/AsmWriter.cpp
+++ b/llvm/lib/IR/AsmWriter.cpp
@@ -2850,22 +2850,6 @@ static std::string getLinkageNameWithSpace(GlobalValue::LinkageTypes LT) {
return getLinkageName(LT) + " ";
}
-static const char *getHotnessName(CalleeInfo::HotnessType HT) {
- switch (HT) {
- case CalleeInfo::HotnessType::Unknown:
- return "unknown";
- case CalleeInfo::HotnessType::Cold:
- return "cold";
- case CalleeInfo::HotnessType::None:
- return "none";
- case CalleeInfo::HotnessType::Hot:
- return "hot";
- case CalleeInfo::HotnessType::Critical:
- return "critical";
- }
- llvm_unreachable("invalid hotness");
-}
-
void AssemblyWriter::printFunctionSummary(const FunctionSummary *FS) {
Out << ", insts: " << FS->instCount();
OpenPOWER on IntegriCloud