[PATCH] D117423: [AVR][clang] Reject non assembly source files for the avr1 family

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 24 15:12:07 PST 2022


MaskRay added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:5149
+  // Devices in the avr-1 family only support assembly programming.
+  if (TC.getArch() == llvm::Triple::avr) {
+    auto const &AVRTC = static_cast<const toolchains::AVRToolChain &>(TC);
----------------
Try moving the check from the generic file to the toolchain-specific file.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117423/new/

https://reviews.llvm.org/D117423



More information about the cfe-commits mailing list