mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
llvm-objdump: don't print relocations in non-relocatable files.
This matches the behavior of GNU objdump. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215844 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -979,6 +979,10 @@ COFFObjectFile::getRelocationValueString(DataRefImpl Rel,
|
||||
return object_error::success;
|
||||
}
|
||||
|
||||
bool COFFObjectFile::isRelocatableObject() const {
|
||||
return !DataDirectory;
|
||||
}
|
||||
|
||||
bool ImportDirectoryEntryRef::
|
||||
operator==(const ImportDirectoryEntryRef &Other) const {
|
||||
return ImportTable == Other.ImportTable && Index == Other.Index;
|
||||
|
Reference in New Issue
Block a user