llvm-6502/lib/MC
Duncan P. N. Exon Smith c9978bab4b MC: Only allow changing feature bits in MCSubtargetInfo
Disallow all mutation of `MCSubtargetInfo` expect the feature bits.

Besides deleting the assignment operators -- which were dead "code" --
this restricts `InitMCProcessorInfo()` to subclass initialization
sequences, and exposes a new more limited function called
`setDefaultFeatures()` for use by the ARMAsmParser `.cpu` directive.

There's a small functional change here: ARMAsmParser used to adjust
`MCSubtargetInfo::CPUSchedModel` as a side effect of calling
`InitMCProcessorInfo()`, but I've removed that suspicious behaviour.
Since the AsmParser shouldn't be doing any scheduling, there shouldn't
be any observable change...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241961 91177308-0d34-0410-b5e6-96231b3b80d8
2015-07-10 22:52:15 +00:00
..
MCDisassembler Change the last few internal StringRef triples into Triple objects. 2015-07-06 16:56:07 +00:00
MCParser Fix PR23872: Integrated assembler error message when using .type directive with @ in AArch32 assembly. 2015-07-01 08:58:49 +00:00
CMakeLists.txt MC: Remove the copy of MCSchedModel in MCSubtargetInfo 2015-07-10 22:13:43 +00:00
ConstantPools.cpp
ELFObjectWriter.cpp Convert a member variable to a local one. 2015-07-02 16:59:57 +00:00
LLVMBuild.txt
MachObjectWriter.cpp Revert r240302 ("Bring r240130 back."). 2015-06-23 11:31:32 +00:00
Makefile
MCAsmBackend.cpp
MCAsmInfo.cpp
MCAsmInfoCOFF.cpp
MCAsmInfoDarwin.cpp
MCAsmInfoELF.cpp
MCAsmStreamer.cpp [MC] Adding prettyPrintAsm to MCTargetStreamer to allow targets to specialize how instructions are printed to asm. 2015-06-18 20:43:22 +00:00
MCAssembler.cpp Fix spelling, NFC. 2015-07-04 05:48:52 +00:00
MCCodeEmitter.cpp
MCCodeGenInfo.cpp
MCContext.cpp Revert r240302 ("Bring r240130 back."). 2015-06-23 11:31:32 +00:00
MCDwarf.cpp Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
MCELFObjectTargetWriter.cpp
MCELFStreamer.cpp Devirtualize and pack MCFragment to reduce memory usage. 2015-06-17 22:01:28 +00:00
MCExpr.cpp MCExpr: Avoid UB by evaluating this shift as unsigned 2015-06-23 07:32:55 +00:00
MCInst.cpp
MCInstPrinter.cpp
MCInstrAnalysis.cpp
MCInstrDesc.cpp MC: Constify MCSubtargetInfo in getDeprecationInfo(), NFC 2015-07-08 17:30:55 +00:00
MCLabel.cpp
MCLinkerOptimizationHint.cpp
MCMachObjectTargetWriter.cpp
MCMachOStreamer.cpp
MCNullStreamer.cpp Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
MCObjectFileInfo.cpp Enable StackMap Serialization for COFF 2015-06-25 00:28:42 +00:00
MCObjectStreamer.cpp [MC] Ensure that pending labels are flushed when -mc-relax-all flag is used 2015-06-27 01:54:17 +00:00
MCObjectWriter.cpp
MCRegisterInfo.cpp
MCSchedule.cpp Add <type_traits> for is_pod, fixing r241947 2015-07-10 22:17:49 +00:00
MCSection.cpp
MCSectionCOFF.cpp
MCSectionELF.cpp
MCSectionMachO.cpp
MCStreamer.cpp [MC] Adding prettyPrintAsm to MCTargetStreamer to allow targets to specialize how instructions are printed to asm. 2015-06-18 20:43:22 +00:00
MCSubtargetInfo.cpp MC: Only allow changing feature bits in MCSubtargetInfo 2015-07-10 22:52:15 +00:00
MCSymbol.cpp [MC] Switch static const to an enum to silence MSVC linker warnings 2015-07-10 21:50:04 +00:00
MCSymbolELF.cpp Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
MCSymbolizer.cpp
MCTargetOptions.cpp
MCValue.cpp
MCWin64EH.cpp Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
MCWinEH.cpp Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
StringTableBuilder.cpp
SubtargetFeature.cpp
WinCOFFObjectWriter.cpp Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
WinCOFFStreamer.cpp Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
YAML.cpp