[PATCH] D36364: [AArch64] Add support for a MinGW AArch64 target
Saleem Abdulrasool via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 5 21:37:22 PDT 2017
compnerd added inline comments.
================
Comment at: lib/Driver/ToolChains/MinGW.cpp:122-131
if (TC.getArch() == llvm::Triple::x86)
CmdArgs.push_back("i386pe");
- if (TC.getArch() == llvm::Triple::x86_64)
+ else if (TC.getArch() == llvm::Triple::x86_64)
CmdArgs.push_back("i386pep");
- if (TC.getArch() == llvm::Triple::arm)
+ else if (TC.getArch() == llvm::Triple::arm)
CmdArgs.push_back("thumb2pe");
+ else if (TC.getArch() == llvm::Triple::aarch64)
----------------
Can you use a switch here instead?
https://reviews.llvm.org/D36364
More information about the cfe-commits
mailing list