[PATCH] D130273: [clang][Driver] Handle SPARC -mcpu=native etc.

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 21 19:54:16 PDT 2022


MaskRay added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:2225
+    StringRef Name = A->getValue();
+
+    std::string TuneCPU;
----------------
delete blank line after a variable declaration


================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:2226
+
+    std::string TuneCPU;
+    if (Name == "native")
----------------
```
std::string TuneCPU(Name == "native" ? ... : ...)
if (!TuneCPU.empty()) {
  ...
```


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D130273



More information about the cfe-commits mailing list