2015-06-23 04:08:48 +02:00
|
|
|
//===- SymbolSize.h ---------------------------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_OBJECT_SYMBOLSIZE_H
|
|
|
|
#define LLVM_OBJECT_SYMBOLSIZE_H
|
|
|
|
|
|
|
|
#include "llvm/Object/ObjectFile.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
namespace object {
|
2016-11-15 22:07:03 +01:00
|
|
|
|
|
|
|
struct SymEntry {
|
|
|
|
symbol_iterator I;
|
|
|
|
uint64_t Address;
|
|
|
|
unsigned Number;
|
|
|
|
unsigned SectionID;
|
|
|
|
};
|
|
|
|
|
|
|
|
int compareAddress(const SymEntry *A, const SymEntry *B);
|
|
|
|
|
2015-06-24 21:57:32 +02:00
|
|
|
std::vector<std::pair<SymbolRef, uint64_t>>
|
2015-06-23 04:08:48 +02:00
|
|
|
computeSymbolSizes(const ObjectFile &O);
|
2016-11-15 22:07:03 +01:00
|
|
|
|
2015-06-23 04:08:48 +02:00
|
|
|
}
|
|
|
|
} // namespace llvm
|
|
|
|
|
|
|
|
#endif
|