aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/lld/COFF/CallGraphSort.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/lld/COFF/CallGraphSort.h')
-rw-r--r--contrib/llvm-project/lld/COFF/CallGraphSort.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/llvm-project/lld/COFF/CallGraphSort.h b/contrib/llvm-project/lld/COFF/CallGraphSort.h
new file mode 100644
index 000000000000..e4f372137448
--- /dev/null
+++ b/contrib/llvm-project/lld/COFF/CallGraphSort.h
@@ -0,0 +1,22 @@
+//===- CallGraphSort.h ------------------------------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLD_COFF_CALL_GRAPH_SORT_H
+#define LLD_COFF_CALL_GRAPH_SORT_H
+
+#include "llvm/ADT/DenseMap.h"
+
+namespace lld {
+namespace coff {
+class SectionChunk;
+
+llvm::DenseMap<const SectionChunk *, int> computeCallGraphProfileOrder();
+} // namespace coff
+} // namespace lld
+
+#endif