diff options
| author | Bill Wendling <isanbard@gmail.com> | 2009-05-13 21:33:08 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2009-05-13 21:33:08 +0000 |
| commit | f7b83c7ae74ca918d0fc92210661508233c6a2e9 (patch) | |
| tree | 1f9a1dce3779953f3a71133762d29d5befce1125 /llvm/docs/CodeGenerator.html | |
| parent | e39935527edb313f22a9c6b98b0aa89c3fa22d3e (diff) | |
| download | bcm5719-llvm-f7b83c7ae74ca918d0fc92210661508233c6a2e9.tar.gz bcm5719-llvm-f7b83c7ae74ca918d0fc92210661508233c6a2e9.zip | |
Change MachineInstrBuilder::addReg() to take a flag instead of a list of
booleans. This gives a better indication of what the "addReg()" is
doing. Remembering what all of those booleans mean isn't easy, especially if you
aren't spending all of your time in that code.
I took Jakob's suggestion and made it illegal to pass in "true" for the
flag. This should hopefully prevent any unintended misuse of this (by reverting
to the old way of using addReg()).
llvm-svn: 71722
Diffstat (limited to 'llvm/docs/CodeGenerator.html')
| -rw-r--r-- | llvm/docs/CodeGenerator.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/docs/CodeGenerator.html b/llvm/docs/CodeGenerator.html index dd9cd4a45ba..9a28f1f0ca3 100644 --- a/llvm/docs/CodeGenerator.html +++ b/llvm/docs/CodeGenerator.html @@ -600,7 +600,7 @@ BuildMI(MBB, X86::JNE, 1).addMBB(&MBB); <div class="doc_code"> <pre> -MI.addReg(Reg, MachineOperand::Def); +MI.addReg(Reg, RegState::Define); </pre> </div> |

