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/MachineFunction.cpp | |
parent | 8c43e41d9bf388195d4b1f32b569193c77ca404a (diff) | |
download | bcm5719-llvm-c731c97facb5ff56daceb724d75f1f14e8d01f39.tar.gz bcm5719-llvm-c731c97facb5ff56daceb724d75f1f14e8d01f39.zip |
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/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index c762ae567c8..ca7468476ad 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -208,7 +208,7 @@ void MachineFunction::print(std::ostream &OS) const { const MRegisterInfo *MRI = getTarget().getRegisterInfo(); - if (livein_begin() != livein_end()) { + if (!livein_empty()) { OS << "Live Ins:"; for (livein_iterator I = livein_begin(), E = livein_end(); I != E; ++I) { if (MRI) @@ -221,7 +221,7 @@ void MachineFunction::print(std::ostream &OS) const { } OS << "\n"; } - if (liveout_begin() != liveout_end()) { + if (!liveout_empty()) { OS << "Live Outs:"; for (liveout_iterator I = liveout_begin(), E = liveout_end(); I != E; ++I) if (MRI) |