================ @@ -198,13 +199,21 @@ static int PrintSupportedExtensions(std::string TargetStr) { std::unique_ptr<llvm::TargetMachine> TheTargetMachine( TheTarget->createTargetMachine(TargetStr, "", "", Options, std::nullopt)); const llvm::Triple &MachineTriple = TheTargetMachine->getTargetTriple(); + const llvm::MCSubtargetInfo *MCInfo = TheTargetMachine->getMCSubtargetInfo(); + const llvm::ArrayRef<llvm::SubtargetFeatureKV> Features = + MCInfo->getAllProcessorFeatures(); + + std::map<StringRef, StringRef> llvmDescMap; ---------------- DavidSpickett wrote:
Potentially this could be https://llvm.org/doxygen/classllvm_1_1StringMap.html instead. https://github.com/llvm/llvm-project/pull/66715 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits