diff options
author | Devang Patel <dpatel@apple.com> | 2006-09-14 21:43:24 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2006-09-14 21:43:24 +0000 |
commit | 697e5905805634b343be39391c403c38d2e64999 (patch) | |
tree | 45595938e66781b60984b6d438b27ca116e62047 /include | |
parent | 1ec72738ac685543a02068559877ec713b36a463 (diff) | |
download | external_llvm-697e5905805634b343be39391c403c38d2e64999.zip external_llvm-697e5905805634b343be39391c403c38d2e64999.tar.gz external_llvm-697e5905805634b343be39391c403c38d2e64999.tar.bz2 |
Undo previous check-in.
Reintroduce recursive assignDFSNumber().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30380 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/ET-Forest.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/llvm/Analysis/ET-Forest.h b/include/llvm/Analysis/ET-Forest.h index ef2b215..b05776a 100644 --- a/include/llvm/Analysis/ET-Forest.h +++ b/include/llvm/Analysis/ET-Forest.h @@ -250,7 +250,16 @@ public: return this->Below(other); } - void assignDFSNumber(int &); + 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++; + } bool hasFather() const { return Father != NULL; |