From: Craig Topper Date: Mon, 31 Oct 2022 17:32:22 +0000 (-0700) Subject: [X86][Driver] Remove stale FIXME. NFC X-Git-Tag: upstream/17.0.6~28948 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6fa0e3df97ac1280da98bd1bc156dad5e036246b;p=platform%2Fupstream%2Fllvm.git [X86][Driver] Remove stale FIXME. NFC We use getHostCPUFeatures in x86::getX86TargetFeatures so I think this FIXME is taken care of already. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D137054 --- diff --git a/clang/lib/Driver/ToolChains/Arch/X86.cpp b/clang/lib/Driver/ToolChains/Arch/X86.cpp index 81cccb6..d847db7 100644 --- a/clang/lib/Driver/ToolChains/Arch/X86.cpp +++ b/clang/lib/Driver/ToolChains/Arch/X86.cpp @@ -30,9 +30,6 @@ std::string x86::getX86TargetCPU(const Driver &D, const ArgList &Args, // FIXME: Reject attempts to use -march=native unless the target matches // the host. - // - // FIXME: We should also incorporate the detected target features for use - // with -native. CPU = llvm::sys::getHostCPUName(); if (!CPU.empty() && CPU != "generic") return std::string(CPU);