[PATCH] D145857: [X86] Make triple ArchName override OS for i686 and i786
Phoebe Wang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 11 20:17:12 PST 2023
pengfei created this revision.
Herald added a project: All.
pengfei requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay.
Herald added a project: clang.
Fixes #61347
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D145857
Files:
clang/lib/Driver/ToolChains/Arch/X86.cpp
Index: clang/lib/Driver/ToolChains/Arch/X86.cpp
===================================================================
--- clang/lib/Driver/ToolChains/Arch/X86.cpp
+++ clang/lib/Driver/ToolChains/Arch/X86.cpp
@@ -102,6 +102,12 @@
if (Is64Bit)
return "x86-64";
+ if (Triple.getArchName() == "i686")
+ return "i686";
+
+ if (Triple.getArchName() == "i786")
+ return "pentiumpro"
+
switch (Triple.getOS()) {
case llvm::Triple::NetBSD:
return "i486";
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145857.504399.patch
Type: text/x-patch
Size: 473 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230312/8ef3f88c/attachment.bin>
More information about the cfe-commits
mailing list