diff options
author | Dan Gohman <gohman@apple.com> | 2007-10-03 19:26:29 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-10-03 19:26:29 +0000 |
commit | c731c97facb5ff56daceb724d75f1f14e8d01f39 (patch) | |
tree | 700408f7fbcfb3dd5005afb0399dff630d61948b /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 8c43e41d9bf388195d4b1f32b569193c77ca404a (diff) | |
download | llvm-c731c97facb5ff56daceb724d75f1f14e8d01f39.zip llvm-c731c97facb5ff56daceb724d75f1f14e8d01f39.tar.gz llvm-c731c97facb5ff56daceb724d75f1f14e8d01f39.tar.bz2 |
Use empty() member functions when that's what's being tested for instead
of comparing begin() and end().
llvm-svn: 42585
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index 134d276..6a8b083 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -119,7 +119,7 @@ void MachineBasicBlock::print(std::ostream &OS) const { OS << ":\n"; const MRegisterInfo *MRI = MF->getTarget().getRegisterInfo(); - if (livein_begin() != livein_end()) { + if (!livein_empty()) { OS << "Live Ins:"; for (const_livein_iterator I = livein_begin(),E = livein_end(); I != E; ++I) OutputReg(OS, *I, MRI); |