[llvm-branch-commits] [llvm-branch] r107651 - /llvm/branches/wendling/eh/lib/CodeGen/MachineFunction.cpp
Bill Wendling
isanbard at gmail.com
Tue Jul 6 04:31:51 PDT 2010
Author: void
Date: Tue Jul 6 06:31:51 2010
New Revision: 107651
URL: http://llvm.org/viewvc/llvm-project?rev=107651&view=rev
Log:
Add the EH filter IDs to the MachineFunction dump method.
Modified:
llvm/branches/wendling/eh/lib/CodeGen/MachineFunction.cpp
Modified: llvm/branches/wendling/eh/lib/CodeGen/MachineFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/wendling/eh/lib/CodeGen/MachineFunction.cpp?rev=107651&r1=107650&r2=107651&view=diff
==============================================================================
--- llvm/branches/wendling/eh/lib/CodeGen/MachineFunction.cpp (original)
+++ llvm/branches/wendling/eh/lib/CodeGen/MachineFunction.cpp Tue Jul 6 06:31:51 2010
@@ -296,6 +296,7 @@
if (RegInfo && !RegInfo->livein_empty()) {
OS << "Function Live Ins: ";
+
for (MachineRegisterInfo::livein_iterator
I = RegInfo->livein_begin(), E = RegInfo->livein_end(); I != E; ++I) {
if (TRI)
@@ -309,8 +310,10 @@
if (llvm::next(I) != E)
OS << ", ";
}
+
OS << '\n';
}
+
if (RegInfo && !RegInfo->liveout_empty()) {
OS << "Function Live Outs: ";
for (MachineRegisterInfo::liveout_iterator
@@ -323,6 +326,20 @@
if (llvm::next(I) != E)
OS << " ";
}
+
+ OS << '\n';
+ }
+
+ if (!filter_empty()) {
+ OS << "Function Filter IDs: ";
+
+ for (filter_iterator I = filter_begin(), E = filter_end(); I != E; ++I) {
+ OS << (*I)->getName();
+
+ if (llvm::next(I) != E)
+ OS << ", ";
+ }
+
OS << '\n';
}
More information about the llvm-branch-commits
mailing list