OSDN Git Service

Don't allow the automatically updated MI flags to be set directly.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 18 Dec 2012 21:36:05 +0000 (21:36 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 18 Dec 2012 21:36:05 +0000 (21:36 +0000)
commitbd7b36e780f99b808f8e334e26f3dae1bc7e8175
treed35231c0dd918a76c1af6e0d3800ea7af577afbb
parent9b04104a5e9fb51b24b7aeb55912d319802049b2
Don't allow the automatically updated MI flags to be set directly.

The bundle-related MI flags need to be kept in sync with the neighboring
instructions. Don't allow the bulk flag-setting setFlags() function to
change them.

Also don't copy MI flags when cloning an instruction. The clone's bundle
flags will be set when it is explicitly inserted into a bundle.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170459 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineInstr.h
lib/CodeGen/MachineInstr.cpp