mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
17b1c795d6
On ELF that was already the case since getting the size of a symbol never fails. On MachO and COFF we could fail trying to get the section of a symbol. But we don't really need the section, just the section number to know if two symbols are in the same section or not. llvm-svn: 240580
24 lines
600 B
C++
24 lines
600 B
C++
//===- 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 {
|
|
std::vector<std::pair<SymbolRef, uint64_t>>
|
|
computeSymbolSizes(const ObjectFile &O);
|
|
}
|
|
} // namespace llvm
|
|
|
|
#endif
|