[llvm] r314770 - [RISCV] Parse RISC-V eflags in ObjectYAML
Alex Bradbury via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 3 01:00:47 PDT 2017
Author: asb
Date: Tue Oct 3 01:00:47 2017
New Revision: 314770
URL: http://llvm.org/viewvc/llvm-project?rev=314770&view=rev
Log:
[RISCV] Parse RISC-V eflags in ObjectYAML
Differential Revision: https://reviews.llvm.org/D38311
Patch by Chih-Mao Chen.
Modified:
llvm/trunk/lib/ObjectYAML/ELFYAML.cpp
Modified: llvm/trunk/lib/ObjectYAML/ELFYAML.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ObjectYAML/ELFYAML.cpp?rev=314770&r1=314769&r2=314770&view=diff
==============================================================================
--- llvm/trunk/lib/ObjectYAML/ELFYAML.cpp (original)
+++ llvm/trunk/lib/ObjectYAML/ELFYAML.cpp Tue Oct 3 01:00:47 2017
@@ -359,6 +359,14 @@ void ScalarBitSetTraits<ELFYAML::ELF_EF>
BCase(EF_AVR_ARCH_XMEGA6);
BCase(EF_AVR_ARCH_XMEGA7);
break;
+ case ELF::EM_RISCV:
+ BCase(EF_RISCV_RVC);
+ BCaseMask(EF_RISCV_FLOAT_ABI_SOFT, EF_RISCV_FLOAT_ABI);
+ BCaseMask(EF_RISCV_FLOAT_ABI_SINGLE, EF_RISCV_FLOAT_ABI);
+ BCaseMask(EF_RISCV_FLOAT_ABI_DOUBLE, EF_RISCV_FLOAT_ABI);
+ BCaseMask(EF_RISCV_FLOAT_ABI_QUAD, EF_RISCV_FLOAT_ABI);
+ BCase(EF_RISCV_RVE);
+ break;
case ELF::EM_AMDGPU:
case ELF::EM_X86_64:
break;
More information about the llvm-commits
mailing list