aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/MemRegion.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-04-21 18:09:22 +0000
committerTed Kremenek <kremenek@apple.com>2009-04-21 18:09:22 +0000
commit5639a3ec15bdbf0b93376bbbae3adaf724f092a7 (patch)
tree6bde59e0df7c8173403635e3178cb24d8ee38ded /lib/Analysis/MemRegion.cpp
parent88207c9ca218486b93ae7df14e9764cd0c2c3383 (diff)
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
Diffstat (limited to 'lib/Analysis/MemRegion.cpp')
-rw-r--r--lib/Analysis/MemRegion.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/Analysis/MemRegion.cpp b/lib/Analysis/MemRegion.cpp
index 0990767378..5e71924bf9 100644
--- a/lib/Analysis/MemRegion.cpp
+++ b/lib/Analysis/MemRegion.cpp
@@ -157,18 +157,14 @@ void AllocaRegion::print(llvm::raw_ostream& os) const {
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 @@ void FieldRegion::print(llvm::raw_ostream& os) const {
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();
}
//===----------------------------------------------------------------------===//