1ece8a530Spatrick //===- CallGraphSort.h ------------------------------------------*- C++ -*-===// 2ece8a530Spatrick // 3ece8a530Spatrick // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4ece8a530Spatrick // See https://llvm.org/LICENSE.txt for license information. 5ece8a530Spatrick // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6ece8a530Spatrick // 7ece8a530Spatrick //===----------------------------------------------------------------------===// 8ece8a530Spatrick 9ece8a530Spatrick #ifndef LLD_ELF_CALL_GRAPH_SORT_H 10ece8a530Spatrick #define LLD_ELF_CALL_GRAPH_SORT_H 11ece8a530Spatrick 12ece8a530Spatrick #include "llvm/ADT/DenseMap.h" 13ece8a530Spatrick 14*dfe94b16Srobert namespace lld::elf { 15ece8a530Spatrick class InputSectionBase; 16ece8a530Spatrick 17ece8a530Spatrick llvm::DenseMap<const InputSectionBase *, int> computeCallGraphProfileOrder(); 18*dfe94b16Srobert } // namespace lld::elf 19ece8a530Spatrick 20ece8a530Spatrick #endif 21