diff options
author | Matthias Braun <matze@braunis.de> | 2015-05-18 20:27:55 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2015-05-18 20:27:55 +0000 |
commit | fa3872e7ad06f2959f61eba4f0a5c91be7133091 (patch) | |
tree | 729858e0cce4cb38a08b847db344a6dde2764224 /llvm/lib/CodeGen/ShrinkWrap.cpp | |
parent | db364695543cfad3f40ef25457cea558c4aebd20 (diff) | |
download | bcm5719-llvm-fa3872e7ad06f2959f61eba4f0a5c91be7133091.tar.gz bcm5719-llvm-fa3872e7ad06f2959f61eba4f0a5c91be7133091.zip |
MachineInstr: Change return value of getOpcode() to unsigned.
This was previously returning int. However there are no negative opcode
numbers and more importantly this was needlessly different from
MCInstrDesc::getOpcode() (which even is the value returned here) and
SDValue::getOpcode()/SDNode::getOpcode().
llvm-svn: 237611
Diffstat (limited to 'llvm/lib/CodeGen/ShrinkWrap.cpp')
-rw-r--r-- | llvm/lib/CodeGen/ShrinkWrap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/ShrinkWrap.cpp b/llvm/lib/CodeGen/ShrinkWrap.cpp index 56f1200619c..e1869b30343 100644 --- a/llvm/lib/CodeGen/ShrinkWrap.cpp +++ b/llvm/lib/CodeGen/ShrinkWrap.cpp @@ -106,9 +106,9 @@ class ShrinkWrap : public MachineFunctionPass { /// Frequency of the Entry block. uint64_t EntryFreq; /// Current opcode for frame setup. - int FrameSetupOpcode; + unsigned FrameSetupOpcode; /// Current opcode for frame destroy. - int FrameDestroyOpcode; + unsigned FrameDestroyOpcode; /// Entry block. const MachineBasicBlock *Entry; |