[lld] r248680 - [ELF] Sort a list of cases alphabetically for consistency/clarity. NFC.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 27 02:01:29 PDT 2015


Author: davide
Date: Sun Sep 27 04:01:28 2015
New Revision: 248680

URL: http://llvm.org/viewvc/llvm-project?rev=248680&view=rev
Log:
[ELF] Sort a list of cases alphabetically for consistency/clarity. NFC.

Modified:
    lld/trunk/ELF/SymbolTable.cpp

Modified: lld/trunk/ELF/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolTable.cpp?rev=248680&r1=248679&r2=248680&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolTable.cpp (original)
+++ lld/trunk/ELF/SymbolTable.cpp Sun Sep 27 04:01:28 2015
@@ -41,18 +41,18 @@ void SymbolTable::addFile(std::unique_pt
 
 static TargetInfo *createTarget(uint16_t EMachine) {
   switch (EMachine) {
-  case EM_PPC:
-    return new PPCTargetInfo();
-  case EM_ARM:
-    return new ARMTargetInfo();
+  case EM_386:
+    return new X86TargetInfo();
   case EM_AARCH64:
     return new AArch64TargetInfo();
+  case EM_ARM:
+    return new ARMTargetInfo();
+  case EM_PPC:
+    return new PPCTargetInfo();
   case EM_PPC64:
     return new PPC64TargetInfo();
   case EM_X86_64:
     return new X86_64TargetInfo();
-  case EM_386:
-    return new X86TargetInfo();
   }
   error("Unknown target machine");
 }




More information about the llvm-commits mailing list