[cfe-commits] r69688 - /cfe/trunk/lib/Analysis/MemRegion.cpp

Ted Kremenek kremenek at apple.com
Tue Apr 21 11:09:22 PDT 2009


Author: kremenek
Date: Tue Apr 21 13:09:22 2009
New Revision: 69688

URL: http://llvm.org/viewvc/llvm-project?rev=69688&view=rev
Log:
Lexically order the implementation of MemRegion 'print' methods.  No functionality change.

Modified:
    cfe/trunk/lib/Analysis/MemRegion.cpp

Modified: cfe/trunk/lib/Analysis/MemRegion.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/MemRegion.cpp?rev=69688&r1=69687&r2=69688&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/MemRegion.cpp (original)
+++ cfe/trunk/lib/Analysis/MemRegion.cpp Tue Apr 21 13:09:22 2009
@@ -157,18 +157,14 @@
   os << "alloca{" << (void*) Ex << ',' << Cnt << '}';
 }
 
-void TypedViewRegion::print(llvm::raw_ostream& os) const {
-  os << "typed_view{" << LValueType.getAsString() << ',';
-  getSuperRegion()->print(os);
-  os << '}';
-}
-
-void VarRegion::print(llvm::raw_ostream& os) const {
-  os << cast<VarDecl>(D)->getNameAsString();
+void CompoundLiteralRegion::print(llvm::raw_ostream& os) const {
+  // FIXME: More elaborate pretty-printing.
+  os << "{ " << (void*) CL <<  " }";
 }
 
-void SymbolicRegion::print(llvm::raw_ostream& os) const {
-  os << "SymRegion-" << sym;
+void ElementRegion::print(llvm::raw_ostream& os) const {
+  superRegion->print(os);
+  os << '['; Index.print(os); os << ']';
 }
 
 void FieldRegion::print(llvm::raw_ostream& os) const {
@@ -176,18 +172,22 @@
   os << "->" << getDecl()->getNameAsString();
 }
 
-void ElementRegion::print(llvm::raw_ostream& os) const {
-  superRegion->print(os);
-  os << '['; Index.print(os); os << ']';
+void StringRegion::print(llvm::raw_ostream& os) const {
+  Str->printPretty(os);
 }
 
-void CompoundLiteralRegion::print(llvm::raw_ostream& os) const {
-  // FIXME: More elaborate pretty-printing.
-  os << "{ " << (void*) CL <<  " }";
+void SymbolicRegion::print(llvm::raw_ostream& os) const {
+  os << "SymRegion-" << sym;
 }
 
-void StringRegion::print(llvm::raw_ostream& os) const {
-  Str->printPretty(os);
+void TypedViewRegion::print(llvm::raw_ostream& os) const {
+  os << "typed_view{" << LValueType.getAsString() << ',';
+  getSuperRegion()->print(os);
+  os << '}';
+}
+
+void VarRegion::print(llvm::raw_ostream& os) const {
+  os << cast<VarDecl>(D)->getNameAsString();
 }
 
 //===----------------------------------------------------------------------===//





More information about the cfe-commits mailing list