Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:44:20

0001 //===- SymbolSize.h ---------------------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //
0008 //===----------------------------------------------------------------------===//
0009 
0010 #ifndef LLVM_OBJECT_SYMBOLSIZE_H
0011 #define LLVM_OBJECT_SYMBOLSIZE_H
0012 
0013 #include "llvm/Object/ObjectFile.h"
0014 
0015 namespace llvm {
0016 namespace object {
0017 
0018 struct SymEntry {
0019   symbol_iterator I;
0020   uint64_t Address;
0021   unsigned Number;
0022   unsigned SectionID;
0023 };
0024 
0025 int compareAddress(const SymEntry *A, const SymEntry *B);
0026 
0027 std::vector<std::pair<SymbolRef, uint64_t>>
0028 computeSymbolSizes(const ObjectFile &O);
0029 
0030 }
0031 } // namespace llvm
0032 
0033 #endif