[llvm] 547b6da - [CallPrinter] Remove static constructor.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 17 04:03:51 PDT 2020
Author: Benjamin Kramer
Date: 2020-06-17T13:02:58+02:00
New Revision: 547b6da73cc234e0d9f5236c27ba6e4ba76869f9
URL: https://github.com/llvm/llvm-project/commit/547b6da73cc234e0d9f5236c27ba6e4ba76869f9
DIFF: https://github.com/llvm/llvm-project/commit/547b6da73cc234e0d9f5236c27ba6e4ba76869f9.diff
LOG: [CallPrinter] Remove static constructor.
No need to have std::string here. NFC.
Added:
Modified:
llvm/lib/Analysis/HeatUtils.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/HeatUtils.cpp b/llvm/lib/Analysis/HeatUtils.cpp
index 01276f880bce..a1a11be5fee3 100644
--- a/llvm/lib/Analysis/HeatUtils.cpp
+++ b/llvm/lib/Analysis/HeatUtils.cpp
@@ -19,7 +19,7 @@
namespace llvm {
static const unsigned heatSize = 100;
-static const std::string heatPalette[heatSize] = {
+static const char heatPalette[heatSize][8] = {
"#3d50c3", "#4055c8", "#4358cb", "#465ecf", "#4961d2", "#4c66d6", "#4f69d9",
"#536edd", "#5572df", "#5977e3", "#5b7ae5", "#5f7fe8", "#6282ea", "#6687ed",
"#6a8bef", "#6c8ff1", "#7093f3", "#7396f5", "#779af7", "#7a9df8", "#7ea1fa",
More information about the llvm-commits
mailing list