1e8d8bef9SDimitry Andric //===- CallGraphSort.h ------------------------------------------*- C++ -*-===// 2e8d8bef9SDimitry Andric // 3e8d8bef9SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4e8d8bef9SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 5e8d8bef9SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6e8d8bef9SDimitry Andric // 7e8d8bef9SDimitry Andric //===----------------------------------------------------------------------===// 8e8d8bef9SDimitry Andric 9e8d8bef9SDimitry Andric #ifndef LLD_COFF_CALL_GRAPH_SORT_H 10e8d8bef9SDimitry Andric #define LLD_COFF_CALL_GRAPH_SORT_H 11e8d8bef9SDimitry Andric 12e8d8bef9SDimitry Andric #include "llvm/ADT/DenseMap.h" 13e8d8bef9SDimitry Andric 14*bdd1243dSDimitry Andric namespace lld::coff { 15e8d8bef9SDimitry Andric class SectionChunk; 16349cc55cSDimitry Andric class COFFLinkerContext; 17e8d8bef9SDimitry Andric 18349cc55cSDimitry Andric llvm::DenseMap<const SectionChunk *, int> 19349cc55cSDimitry Andric computeCallGraphProfileOrder(const COFFLinkerContext &ctx); 20*bdd1243dSDimitry Andric } // namespace lld::coff 21e8d8bef9SDimitry Andric 22e8d8bef9SDimitry Andric #endif 23