[llvm] ddcdeae - [Analysis] ImportedFunctionsInliningStatistics.h - add <memory> and remove unused <string> include. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 19 08:21:12 PDT 2021
Author: Simon Pilgrim
Date: 2021-04-19T16:20:56+01:00
New Revision: ddcdeae358685f941c3520e01b0a8e86e3aca04b
URL: https://github.com/llvm/llvm-project/commit/ddcdeae358685f941c3520e01b0a8e86e3aca04b
DIFF: https://github.com/llvm/llvm-project/commit/ddcdeae358685f941c3520e01b0a8e86e3aca04b.diff
LOG: [Analysis] ImportedFunctionsInliningStatistics.h - add <memory> and remove unused <string> include. NFCI.
Move <string> include to ImportedFunctionsInliningStatistics.cpp and add missing <memory> include as we have explicit uses of std::unique_ptr in the header.
Added:
Modified:
llvm/include/llvm/Analysis/Utils/ImportedFunctionsInliningStatistics.h
llvm/lib/Analysis/ImportedFunctionsInliningStatistics.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/Utils/ImportedFunctionsInliningStatistics.h b/llvm/include/llvm/Analysis/Utils/ImportedFunctionsInliningStatistics.h
index a06224bbd0330..45ef4dbe2155e 100644
--- a/llvm/include/llvm/Analysis/Utils/ImportedFunctionsInliningStatistics.h
+++ b/llvm/include/llvm/Analysis/Utils/ImportedFunctionsInliningStatistics.h
@@ -15,7 +15,7 @@
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h"
-#include <string>
+#include <memory>
#include <vector>
namespace llvm {
diff --git a/llvm/lib/Analysis/ImportedFunctionsInliningStatistics.cpp b/llvm/lib/Analysis/ImportedFunctionsInliningStatistics.cpp
index a7b5fda237d17..48eeb87ac8b34 100644
--- a/llvm/lib/Analysis/ImportedFunctionsInliningStatistics.cpp
+++ b/llvm/lib/Analysis/ImportedFunctionsInliningStatistics.cpp
@@ -19,6 +19,8 @@
#include <algorithm>
#include <iomanip>
#include <sstream>
+#include <string>
+
using namespace llvm;
cl::opt<InlinerFunctionImportStatsOpts> InlinerFunctionImportStats(
More information about the llvm-commits
mailing list