diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-02-09 19:54:29 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-02-09 19:54:29 +0000 |
| commit | b06015aa69b55fc5b434f34543513df74e16cb6b (patch) | |
| tree | 142279dee98a59105fb98306e527233a4ff5d64a /llvm/lib/CodeGen/SlotIndexes.cpp | |
| parent | f7279bd10f2954613a0f1b2454263152c965b126 (diff) | |
| download | bcm5719-llvm-b06015aa69b55fc5b434f34543513df74e16cb6b.tar.gz bcm5719-llvm-b06015aa69b55fc5b434f34543513df74e16cb6b.zip | |
move target-independent opcodes out of TargetInstrInfo
into TargetOpcodes.h. #include the new TargetOpcodes.h
into MachineInstr. Add new inline accessors (like isPHI())
to MachineInstr, and start using them throughout the
codebase.
llvm-svn: 95687
Diffstat (limited to 'llvm/lib/CodeGen/SlotIndexes.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SlotIndexes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SlotIndexes.cpp b/llvm/lib/CodeGen/SlotIndexes.cpp index a23efb2b8d9..e5a87f7df80 100644 --- a/llvm/lib/CodeGen/SlotIndexes.cpp +++ b/llvm/lib/CodeGen/SlotIndexes.cpp @@ -107,8 +107,8 @@ bool SlotIndexes::runOnMachineFunction(MachineFunction &fn) { for (MachineBasicBlock::iterator miItr = mbb->begin(), miEnd = mbb->end(); miItr != miEnd; ++miItr) { - MachineInstr *mi = &*miItr; - if (mi->getOpcode()==TargetInstrInfo::DEBUG_VALUE) + MachineInstr *mi = miItr; + if (mi->isDebugValue()) continue; if (miItr == mbb->getFirstTerminator()) { |

