[X86][Driver] Remove stale FIXME. NFC
authorCraig Topper <craig.topper@sifive.com>
Mon, 31 Oct 2022 17:32:22 +0000 (10:32 -0700)
committerCraig Topper <craig.topper@sifive.com>
Mon, 31 Oct 2022 17:41:40 +0000 (10:41 -0700)
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

clang/lib/Driver/ToolChains/Arch/X86.cpp

index 81cccb6..d847db7 100644 (file)
@@ -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);