[llvm] r325667 - RISCV: Add COFF address space
Martell Malone via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 20 22:42:38 PST 2018
Author: martell
Date: Tue Feb 20 22:42:38 2018
New Revision: 325667
URL: http://llvm.org/viewvc/llvm-project?rev=325667&view=rev
Log:
RISCV: Add COFF address space
PE spec defines and reserves to following for RISCV
IMAGE_FILE_MACHINE_RISCV32 0x5032
IMAGE_FILE_MACHINE_RISCV64 0x5064
IMAGE_FILE_MACHINE_RISCV128 0x5128
https://msdn.microsoft.com/en-us/library/windows/desktop/ms680547(v=vs.85).aspx
Reviewers: asb, rnk, compnerd
Differential Revision: https://reviews.llvm.org/D41571
Modified:
llvm/trunk/include/llvm/BinaryFormat/COFF.h
Modified: llvm/trunk/include/llvm/BinaryFormat/COFF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/BinaryFormat/COFF.h?rev=325667&r1=325666&r2=325667&view=diff
==============================================================================
--- llvm/trunk/include/llvm/BinaryFormat/COFF.h (original)
+++ llvm/trunk/include/llvm/BinaryFormat/COFF.h Tue Feb 20 22:42:38 2018
@@ -110,6 +110,9 @@ enum MachineTypes : unsigned {
IMAGE_FILE_MACHINE_POWERPC = 0x1F0,
IMAGE_FILE_MACHINE_POWERPCFP = 0x1F1,
IMAGE_FILE_MACHINE_R4000 = 0x166,
+ IMAGE_FILE_MACHINE_RISCV32 = 0x5032,
+ IMAGE_FILE_MACHINE_RISCV64 = 0x5064,
+ IMAGE_FILE_MACHINE_RISCV128 = 0x5128,
IMAGE_FILE_MACHINE_SH3 = 0x1A2,
IMAGE_FILE_MACHINE_SH3DSP = 0x1A3,
IMAGE_FILE_MACHINE_SH4 = 0x1A6,
More information about the llvm-commits
mailing list