All of these are copy-and-pasted from LoopInfo.h. If they're wrong, it's wrong too. I'll investigate.

--Owen

On Nov 27, 2007, at 7:51 PM, Bill Wendling wrote:

Hi Owen,

Thanks! :-) A few comments:

+  // isLoopHeader - True if the block is a loop header node

You probably want a /// comment here.

+  virtual void print(std::ostream &O, const Module* M = 0) const {
+    if (O) LI->print(O, M);
+  }

I think that "if (O)" will always be true here, right?

+// Allow clients to walk the list of nested loops...
+template <> struct GraphTraits<const MachineLoop*> {
+  typedef const MachineLoop NodeType;
+ typedef std::vector<MachineLoop*>::const_iterator ChildIteratorType;

Should this be:

typedef std::vector<const MachineLoop*>::const_iterator ChildIteratorType;

?

-bw
_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to