mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 17:29:19 +00:00
Comment change. NFC
That comment misleads the current discussions in mentioned bug. Leave the discussions to the bug. Also, adding a future change FIXME. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238653 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fa68750e54
commit
9d945aa625
@ -9168,14 +9168,13 @@ bool ARMAsmParser::parseDirectiveCPU(SMLoc L) {
|
|||||||
StringRef CPU = getParser().parseStringToEndOfStatement().trim();
|
StringRef CPU = getParser().parseStringToEndOfStatement().trim();
|
||||||
getTargetStreamer().emitTextAttribute(ARMBuildAttrs::CPU_name, CPU);
|
getTargetStreamer().emitTextAttribute(ARMBuildAttrs::CPU_name, CPU);
|
||||||
|
|
||||||
|
// FIXME: This is using table-gen data, but should be moved to
|
||||||
|
// ARMTargetParser once that is table-gen'd.
|
||||||
if (!STI.isCPUStringValid(CPU)) {
|
if (!STI.isCPUStringValid(CPU)) {
|
||||||
Error(L, "Unknown CPU name");
|
Error(L, "Unknown CPU name");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: This switches the CPU features globally, therefore it might
|
|
||||||
// happen that code you would not expect to assemble will. For details
|
|
||||||
// see: http://llvm.org/bugs/show_bug.cgi?id=20757
|
|
||||||
STI.InitMCProcessorInfo(CPU, "");
|
STI.InitMCProcessorInfo(CPU, "");
|
||||||
STI.InitCPUSchedModel(CPU);
|
STI.InitCPUSchedModel(CPU);
|
||||||
setAvailableFeatures(ComputeAvailableFeatures(STI.getFeatureBits()));
|
setAvailableFeatures(ComputeAvailableFeatures(STI.getFeatureBits()));
|
||||||
|
Loading…
Reference in New Issue
Block a user