summaryrefslogtreecommitdiff
path: root/contrib/llvm-project/lld/ELF/CallGraphSort.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/lld/ELF/CallGraphSort.h')
-rw-r--r--contrib/llvm-project/lld/ELF/CallGraphSort.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/llvm-project/lld/ELF/CallGraphSort.h b/contrib/llvm-project/lld/ELF/CallGraphSort.h
new file mode 100644
index 000000000000..5a092278a416
--- /dev/null
+++ b/contrib/llvm-project/lld/ELF/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_ELF_CALL_GRAPH_SORT_H
+#define LLD_ELF_CALL_GRAPH_SORT_H
+
+#include "llvm/ADT/DenseMap.h"
+
+namespace lld {
+namespace elf {
+class InputSectionBase;
+
+llvm::DenseMap<const InputSectionBase *, int> computeCallGraphProfileOrder();
+} // namespace elf
+} // namespace lld
+
+#endif