diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-07-10 22:52:15 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-07-10 22:52:15 +0000 |
commit | e463e470f8af0b854f07c33bf22882e6599a1779 (patch) | |
tree | 122ff10a3078ea4ef3eefdb5f3d531ec2e24548e /clang/lib/Sema/SemaDecl.cpp | |
parent | cf13d18730f2ec86c3e2bc7fbd42a3d5230a8ce7 (diff) | |
download | bcm5719-llvm-e463e470f8af0b854f07c33bf22882e6599a1779.tar.gz bcm5719-llvm-e463e470f8af0b854f07c33bf22882e6599a1779.zip |
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...
llvm-svn: 241961
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
0 files changed, 0 insertions, 0 deletions