mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
a3af347f38
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240580 91177308-0d34-0410-b5e6-96231b3b80d8
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
|