[PATCH] D13055: [ELF2] Handle -m option

Ed Maste via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 07:31:32 PDT 2015


emaste added inline comments.

================
Comment at: ELF/Config.h:39
@@ -25,1 +38,3 @@
+  ELFKind TargetELFKind = ELF64LEKind;
+  uint16_t TargetEMachine = llvm::ELF::EM_X86_64;
 };
----------------
Do we have a way to get the host architecture type already?

================
Comment at: ELF/Driver.cpp:49-52
@@ +48,6 @@
+static const Emulation Emulations[] = {
+    {"elf_x86_64", ELF64LEKind, EM_X86_64},
+    {"elf_i386", ELF32LEKind, EM_386},
+    {"elf64ppc", ELF64BEKind, EM_PPC64},
+    {"elf32ppc", ELF32BEKind, EM_PPC},
+};
----------------
Can we pick a sorting order so that as this list grows it stays consistent?


http://reviews.llvm.org/D13055





More information about the llvm-commits mailing list