[PATCH] D21779: [LTO] Infer EKind/EMachine from Bitcode files

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 27 21:50:00 PDT 2016


pcc added a subscriber: pcc.

================
Comment at: ELF/InputFiles.cpp:707
@@ +706,3 @@
+    Config->EKind = (Is64Bits) ? ELF64BEKind : ELF32BEKind;
+  std::string ArchName = TheTriple.getArchName();
+  if (ArchName == "aarch64")
----------------
Maybe use `getArch()` and a switch statement instead of `getArchName()` here?


http://reviews.llvm.org/D21779





More information about the llvm-commits mailing list