Skip to content

Commit f43266b

Browse files
committed
[lanai] Update ELF number to correspond to the assigned number.
Change EM_LANAI to correspond to machine number assigned by Xinuos. llvm-svn: 274042
1 parent 16eb3a8 commit f43266b

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

llvm/include/llvm/Support/ELF.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,16 +310,12 @@ enum {
310310
EM_NORC = 218, // Nanoradio Optimized RISC
311311
EM_CSR_KALIMBA = 219, // CSR Kalimba architecture family
312312
EM_AMDGPU = 224, // AMD GPU architecture
313+
EM_LANAI = 244, // Lanai 32-bit processor
313314

314315
// A request has been made to the maintainer of the official registry for
315316
// such numbers for an official value for WebAssembly. As soon as one is
316317
// allocated, this enum will be updated to use it.
317318
EM_WEBASSEMBLY = 0x4157, // WebAssembly architecture
318-
319-
// A request has been made to the maintainer of the official registry for
320-
// an official value for Lanai. As soon as one is allocated, this enum will be
321-
// updated to use it.
322-
EM_LANAI = 0x8123, // Lanai 32-bit processor
323319
};
324320

325321
// Object file classes.
1 Byte
Binary file not shown.
1 Byte
Binary file not shown.

llvm/test/tools/llvm-readobj/file-headers.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ ELF-LANAI-NEXT: ABIVersion: 0
353353
ELF-LANAI-NEXT: Unused: (00 00 00 00 00 00 00)
354354
ELF-LANAI-NEXT: }
355355
ELF-LANAI-NEXT: Type: Relocatable (0x1)
356-
ELF-LANAI-NEXT: Machine: EM_LANAI (0x8123)
356+
ELF-LANAI-NEXT: Machine: EM_LANAI (0xF4)
357357
ELF-LANAI-NEXT: Version: 1
358358
ELF-LANAI-NEXT: Entry: 0x0
359359
ELF-LANAI-NEXT: ProgramHeaderOffset: 0x0

0 commit comments

Comments
 (0)