[llvm] 82293ed - [ModuleInliner] Remove unused using declarations (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 18 14:27:15 PDT 2022
Author: Kazu Hirata
Date: 2022-09-18T14:27:06-07:00
New Revision: 82293ed4866721577dfd8fb6b46118231d539994
URL: https://github.com/llvm/llvm-project/commit/82293ed4866721577dfd8fb6b46118231d539994
DIFF: https://github.com/llvm/llvm-project/commit/82293ed4866721577dfd8fb6b46118231d539994.diff
LOG: [ModuleInliner] Remove unused using declarations (NFC)
Added:
Modified:
llvm/include/llvm/Analysis/InlineOrder.h
llvm/lib/Analysis/InlineOrder.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/InlineOrder.h b/llvm/include/llvm/Analysis/InlineOrder.h
index d3b21a8d498a4..4c82d73df8a57 100644
--- a/llvm/include/llvm/Analysis/InlineOrder.h
+++ b/llvm/include/llvm/Analysis/InlineOrder.h
@@ -18,9 +18,6 @@ class CallBase;
template <typename T> class InlineOrder {
public:
- using reference = T &;
- using const_reference = const T &;
-
virtual ~InlineOrder() = default;
virtual size_t size() = 0;
diff --git a/llvm/lib/Analysis/InlineOrder.cpp b/llvm/lib/Analysis/InlineOrder.cpp
index 89df24ed34033..a0d6a0aac6186 100644
--- a/llvm/lib/Analysis/InlineOrder.cpp
+++ b/llvm/lib/Analysis/InlineOrder.cpp
@@ -149,8 +149,6 @@ class CostPriority : public InlinePriority {
class PriorityInlineOrder : public InlineOrder<std::pair<CallBase *, int>> {
using T = std::pair<CallBase *, int>;
- using reference = T &;
- using const_reference = const T &;
// A call site could become less desirable for inlining because of the size
// growth from prior inlining into the callee. This method is used to lazily
More information about the llvm-commits
mailing list