aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2006-09-14 01:27:42 +0000
committerDevang Patel <dpatel@apple.com>2006-09-14 01:27:42 +0000
commit57d12f962d5af0c23283e0a129b95b106a517e46 (patch)
tree05e31488da9abe9c753e7073c758035dabffd19a /include
parent08c33011d1443ce3e12b6c4026cde975b24c8e37 (diff)
downloadexternal_llvm-57d12f962d5af0c23283e0a129b95b106a517e46.zip
external_llvm-57d12f962d5af0c23283e0a129b95b106a517e46.tar.gz
external_llvm-57d12f962d5af0c23283e0a129b95b106a517e46.tar.bz2
Avoid recursion in assignDFSNumber(). Move def from ET-Forest.h
to Dominators.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30309 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/ET-Forest.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/include/llvm/Analysis/ET-Forest.h b/include/llvm/Analysis/ET-Forest.h
index b05776a..ef2b215 100644
--- a/include/llvm/Analysis/ET-Forest.h
+++ b/include/llvm/Analysis/ET-Forest.h
@@ -250,16 +250,7 @@ public:
return this->Below(other);
}
- void assignDFSNumber(int &num) {
- DFSNumIn = num++;
-
- if (Son) {
- Son->assignDFSNumber(num);
- for (ETNode *son = Son->Right; son != Son; son = son->Right)
- son->assignDFSNumber(num);
- }
- DFSNumOut = num++;
- }
+ void assignDFSNumber(int &);
bool hasFather() const {
return Father != NULL;