Lexically order the implementation of MemRegion 'print' methods.  No functionality change.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69688 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/MemRegion.cpp b/lib/Analysis/MemRegion.cpp
index 0990767..5e71924 100644
--- a/lib/Analysis/MemRegion.cpp
+++ b/lib/Analysis/MemRegion.cpp
@@ -157,6 +157,29 @@
   os << "alloca{" << (void*) Ex << ',' << Cnt << '}';
 }
 
+void CompoundLiteralRegion::print(llvm::raw_ostream& os) const {
+  // FIXME: More elaborate pretty-printing.
+  os << "{ " << (void*) CL <<  " }";
+}
+
+void ElementRegion::print(llvm::raw_ostream& os) const {
+  superRegion->print(os);
+  os << '['; Index.print(os); os << ']';
+}
+
+void FieldRegion::print(llvm::raw_ostream& os) const {
+  superRegion->print(os);
+  os << "->" << getDecl()->getNameAsString();
+}
+
+void StringRegion::print(llvm::raw_ostream& os) const {
+  Str->printPretty(os);
+}
+
+void SymbolicRegion::print(llvm::raw_ostream& os) const {
+  os << "SymRegion-" << sym;
+}
+
 void TypedViewRegion::print(llvm::raw_ostream& os) const {
   os << "typed_view{" << LValueType.getAsString() << ',';
   getSuperRegion()->print(os);
@@ -167,29 +190,6 @@
   os << cast<VarDecl>(D)->getNameAsString();
 }
 
-void SymbolicRegion::print(llvm::raw_ostream& os) const {
-  os << "SymRegion-" << sym;
-}
-
-void FieldRegion::print(llvm::raw_ostream& os) const {
-  superRegion->print(os);
-  os << "->" << getDecl()->getNameAsString();
-}
-
-void ElementRegion::print(llvm::raw_ostream& os) const {
-  superRegion->print(os);
-  os << '['; Index.print(os); os << ']';
-}
-
-void CompoundLiteralRegion::print(llvm::raw_ostream& os) const {
-  // FIXME: More elaborate pretty-printing.
-  os << "{ " << (void*) CL <<  " }";
-}
-
-void StringRegion::print(llvm::raw_ostream& os) const {
-  Str->printPretty(os);
-}
-
 //===----------------------------------------------------------------------===//
 // MemRegionManager methods.
 //===----------------------------------------------------------------------===//