diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-09-02 20:43:43 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-09-02 20:43:43 +0000 |
| commit | 905ad3442d7ccdda10498f57402b7b548fcc1bbc (patch) | |
| tree | 67324df0cd254adb2c7c55d967a931034d112f3d /lld/ELF/InputFiles.cpp | |
| parent | 86fdc85181ae75e0280b00175b1b1af86b5b0c7d (diff) | |
| download | bcm5719-llvm-905ad3442d7ccdda10498f57402b7b548fcc1bbc.tar.gz bcm5719-llvm-905ad3442d7ccdda10498f57402b7b548fcc1bbc.zip | |
Split out the ELF kind from the InputFile Kind.
There were at least two issues with having them together:
* For compatibility checks, we only want to look at the ELF kind.
* Adding support for shared libraries should introduce one InputFile kind,
not 4.
llvm-svn: 246707
Diffstat (limited to 'lld/ELF/InputFiles.cpp')
| -rw-r--r-- | lld/ELF/InputFiles.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index 8e3b1689884..7cc47de9973 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -20,7 +20,7 @@ using namespace lld::elf2; template <class ELFT> bool ObjectFile<ELFT>::isCompatibleWith(const ObjectFileBase &Other) const { - if (kind() != Other.kind()) + if (getELFKind() != Other.getELFKind()) return false; return getObj()->getHeader()->e_machine == cast<ObjectFile<ELFT>>(Other).getObj()->getHeader()->e_machine; |

