[RISCV] Remove duplicated logic when determining the target ABI
authorRoger Ferrer Ibanez <rofirrim@gmail.com>
Wed, 7 Aug 2019 07:08:00 +0000 (07:08 +0000)
committerRoger Ferrer Ibanez <rofirrim@gmail.com>
Wed, 7 Aug 2019 07:08:00 +0000 (07:08 +0000)
commit8198a544e9d893eb0da28bb543667fdefd7ab917
tree6f72814a476dd6c5af62a5d7454985dbed017e01
parentc3583ea32ed5e0fb1aed4a983af121cd71f21ec2
[RISCV] Remove duplicated logic when determining the target ABI

We were calculating twice ilp32/lp64. Do this in one place instead.

Differential Revision: https://reviews.llvm.org/D48357

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@368128 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Arch/RISCV.cpp
lib/Driver/ToolChains/Clang.cpp