diff options
| author | Rui Ueyama <ruiu@google.com> | 2018-09-20 21:18:56 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2018-09-20 21:18:56 +0000 |
| commit | 9932091d87991163cc0cb7eaf828d42e3bd5f94f (patch) | |
| tree | 9f924c33158731465c71a344334878a7a94be723 | |
| parent | 9b7e45159fca266d2207df694dc62210e658f9cc (diff) | |
| download | bcm5719-llvm-9932091d87991163cc0cb7eaf828d42e3bd5f94f.tar.gz bcm5719-llvm-9932091d87991163cc0cb7eaf828d42e3bd5f94f.zip | |
Simplify. NFC.
llvm-svn: 342685
| -rw-r--r-- | lld/ELF/Driver.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp index 62cd5f8a460..0724c79e09e 100644 --- a/lld/ELF/Driver.cpp +++ b/lld/ELF/Driver.cpp @@ -973,10 +973,6 @@ static void setConfigs(opt::InputArgList &Args) { Config->Pic = Config->Pie || Config->Shared; Config->Wordsize = Config->Is64 ? 8 : 4; - // There is an ILP32 ABI for x86-64, although it's not very popular. - // It is called the x32 ABI. - bool IsX32 = (Kind == ELF32LEKind && Machine == EM_X86_64); - // ELF defines two different ways to store relocation addends as shown below: // // Rel: Addends are stored to the location where relocations are applied. @@ -990,9 +986,9 @@ static void setConfigs(opt::InputArgList &Args) { // You cannot choose which one, Rel or Rela, you want to use. Instead each // ABI defines which one you need to use. The following expression expresses // that. - Config->IsRela = - (Config->Is64 || IsX32 || Machine == EM_PPC || Machine == EM_RISCV) && - Machine != EM_MIPS; + Config->IsRela = Machine == EM_AARCH64 || Machine == EM_AMDGPU || + Machine == EM_PPC || Machine == EM_PPC64 || + Machine == EM_RISCV || Machine == EM_X86_64; // If the output uses REL relocations we must store the dynamic relocation // addends to the output sections. We also store addends for RELA relocations |

