Skip to content

Commit 64fe841

Browse files
committed
Fix typo, targetFeature should be lowercase.
this fixing also enable llc -mattr=+cpuhelp Reviewers: ziangwan, kongyi Reviewed By: kongyi Tags: #llvm Differential Revision: https://reviews.llvm.org/D76757
1 parent 1a6b731 commit 64fe841

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/tools/driver/cc1_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ static int PrintSupportedCPUs(std::string TargetStr) {
177177
// the target machine will handle the mcpu printing
178178
llvm::TargetOptions Options;
179179
std::unique_ptr<llvm::TargetMachine> TheTargetMachine(
180-
TheTarget->createTargetMachine(TargetStr, "", "+cpuHelp", Options, None));
180+
TheTarget->createTargetMachine(TargetStr, "", "+cpuhelp", Options, None));
181181
return 0;
182182
}
183183

llvm/lib/MC/MCSubtargetInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ static FeatureBitset getFeatures(StringRef CPU, StringRef FS,
185185
// Check for help
186186
if (Feature == "+help")
187187
Help(ProcDesc, ProcFeatures);
188-
else if (Feature == "+cpuHelp")
188+
else if (Feature == "+cpuhelp")
189189
cpuHelp(ProcDesc);
190190
else
191191
ApplyFeatureFlag(Bits, Feature, ProcFeatures);

0 commit comments

Comments
 (0)