LLVM  8.0.1
SymbolSize.h
Go to the documentation of this file.
1 //===- SymbolSize.h ---------------------------------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //
9 //===----------------------------------------------------------------------===//
10 
11 #ifndef LLVM_OBJECT_SYMBOLSIZE_H
12 #define LLVM_OBJECT_SYMBOLSIZE_H
13 
14 #include "llvm/Object/ObjectFile.h"
15 
16 namespace llvm {
17 namespace object {
18 
19 struct SymEntry {
21  uint64_t Address;
22  unsigned Number;
23  unsigned SectionID;
24 };
25 
26 int compareAddress(const SymEntry *A, const SymEntry *B);
27 
28 std::vector<std::pair<SymbolRef, uint64_t>>
30 
31 }
32 } // namespace llvm
33 
34 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:24
This class is the base class for all object file types.
Definition: ObjectFile.h:202
int compareAddress(const SymEntry *A, const SymEntry *B)
Definition: SymbolSize.cpp:20
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
std::vector< std::pair< SymbolRef, uint64_t > > computeSymbolSizes(const ObjectFile &O)
Definition: SymbolSize.cpp:41
symbol_iterator I
Definition: SymbolSize.h:20