mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-29 13:24:25 +00:00
Move to llvm-objdump a large amount of code to that is only used there.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238898 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1114,22 +1114,6 @@ COFFObjectFile::getRelocationTypeName(DataRefImpl Rel,
|
||||
|
||||
#undef LLVM_COFF_SWITCH_RELOC_TYPE_NAME
|
||||
|
||||
std::error_code
|
||||
COFFObjectFile::getRelocationValueString(DataRefImpl Rel,
|
||||
SmallVectorImpl<char> &Result) const {
|
||||
const coff_relocation *Reloc = toRel(Rel);
|
||||
DataRefImpl Sym;
|
||||
ErrorOr<COFFSymbolRef> Symb = getSymbol(Reloc->SymbolTableIndex);
|
||||
if (std::error_code EC = Symb.getError())
|
||||
return EC;
|
||||
Sym.p = reinterpret_cast<uintptr_t>(Symb->getRawPtr());
|
||||
StringRef SymName;
|
||||
if (std::error_code EC = getSymbolName(Sym, SymName))
|
||||
return EC;
|
||||
Result.append(SymName.begin(), SymName.end());
|
||||
return object_error::success;
|
||||
}
|
||||
|
||||
bool COFFObjectFile::isRelocatableObject() const {
|
||||
return !DataDirectory;
|
||||
}
|
||||
|
Reference in New Issue
Block a user