summaryrefslogtreecommitdiffstats
path: root/lld/ELF/InputFiles.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-09-02 20:43:43 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-09-02 20:43:43 +0000
commit905ad3442d7ccdda10498f57402b7b548fcc1bbc (patch)
tree67324df0cd254adb2c7c55d967a931034d112f3d /lld/ELF/InputFiles.cpp
parent86fdc85181ae75e0280b00175b1b1af86b5b0c7d (diff)
downloadbcm5719-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.cpp2
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;
OpenPOWER on IntegriCloud