mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Attempt to pacify buildbots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217499 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -567,7 +567,14 @@ public:
|
|||||||
const data_directory *&Res) const;
|
const data_directory *&Res) const;
|
||||||
std::error_code getSection(int32_t index, const coff_section *&Res) const;
|
std::error_code getSection(int32_t index, const coff_section *&Res) const;
|
||||||
template <typename coff_symbol_type>
|
template <typename coff_symbol_type>
|
||||||
std::error_code getSymbol(uint32_t index, const coff_symbol_type *&Res) const;
|
std::error_code getSymbol(uint32_t Index,
|
||||||
|
const coff_symbol_type *&Res) const {
|
||||||
|
if (Index < getNumberOfSymbols())
|
||||||
|
Res = reinterpret_cast<coff_symbol_type *>(getSymbolTable()) + Index;
|
||||||
|
else
|
||||||
|
return object_error::parse_failed;
|
||||||
|
return object_error::success;
|
||||||
|
}
|
||||||
ErrorOr<COFFSymbolRef> getSymbol(uint32_t index) const {
|
ErrorOr<COFFSymbolRef> getSymbol(uint32_t index) const {
|
||||||
if (SymbolTable16) {
|
if (SymbolTable16) {
|
||||||
const coff_symbol16 *Symb = nullptr;
|
const coff_symbol16 *Symb = nullptr;
|
||||||
|
@ -768,17 +768,6 @@ std::error_code COFFObjectFile::getString(uint32_t Offset,
|
|||||||
return object_error::success;
|
return object_error::success;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename coff_symbol_type>
|
|
||||||
std::error_code
|
|
||||||
COFFObjectFile::getSymbol(uint32_t Index,
|
|
||||||
const coff_symbol_type *&Result) const {
|
|
||||||
if (Index < getNumberOfSymbols())
|
|
||||||
Result = reinterpret_cast<coff_symbol_type *>(getSymbolTable()) + Index;
|
|
||||||
else
|
|
||||||
return object_error::parse_failed;
|
|
||||||
return object_error::success;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::error_code COFFObjectFile::getSymbolName(COFFSymbolRef Symbol,
|
std::error_code COFFObjectFile::getSymbolName(COFFSymbolRef Symbol,
|
||||||
StringRef &Res) const {
|
StringRef &Res) const {
|
||||||
// Check for string table entry. First 4 bytes are 0.
|
// Check for string table entry. First 4 bytes are 0.
|
||||||
|
Reference in New Issue
Block a user