diff options
author | John McCall <rjmccall@apple.com> | 2010-08-24 09:16:51 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-08-24 09:16:51 +0000 |
commit | 5ee026c51237d9c96051523a0daad264dd328cfa (patch) | |
tree | ac71563a4eff95afa50e613f33b954a467c9f851 /llvm/tools/llvm-diff/llvm-diff.cpp | |
parent | c5990644b05c573772a730ff1a34cb6108a58c60 (diff) | |
download | bcm5719-llvm-5ee026c51237d9c96051523a0daad264dd328cfa.tar.gz bcm5719-llvm-5ee026c51237d9c96051523a0daad264dd328cfa.zip |
Check in a couple of changes that I apparently never committed:
- teach DifferenceEngine to unify successors of calls and invokes
in certain circumstances
- basic blocks actually don't have their own numbering; did that change?
- add llvm-diff to the Makefile and CMake build systems
llvm-svn: 111909
Diffstat (limited to 'llvm/tools/llvm-diff/llvm-diff.cpp')
-rw-r--r-- | llvm/tools/llvm-diff/llvm-diff.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/tools/llvm-diff/llvm-diff.cpp b/llvm/tools/llvm-diff/llvm-diff.cpp index cc5d233db3b..16a990fb281 100644 --- a/llvm/tools/llvm-diff/llvm-diff.cpp +++ b/llvm/tools/llvm-diff/llvm-diff.cpp @@ -75,7 +75,6 @@ struct DiffContext { }; void ComputeNumbering(Function *F, DenseMap<Value*,unsigned> &Numbering) { - unsigned BBN = 0; unsigned IN = 0; // Arguments get the first numbers. @@ -86,9 +85,8 @@ void ComputeNumbering(Function *F, DenseMap<Value*,unsigned> &Numbering) { // Walk the basic blocks in order. for (Function::iterator FI = F->begin(), FE = F->end(); FI != FE; ++FI) { - // Basic blocks have their own 'namespace'. if (!FI->hasName()) - Numbering[&*FI] = BBN++; + Numbering[&*FI] = IN++; // Walk the instructions in order. for (BasicBlock::iterator BI = FI->begin(), BE = FI->end(); BI != BE; ++BI) |