aboutsummaryrefslogtreecommitdiff
path: root/tools/llvm-diff/llvm-diff.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-08-24 09:16:51 +0000
committerJohn McCall <rjmccall@apple.com>2010-08-24 09:16:51 +0000
commitb82b4339d1dded9c7e36afac80aac2ca73918e51 (patch)
tree60812ca95420b64f9524952aa668710c4be27eaf /tools/llvm-diff/llvm-diff.cpp
parent59b06dc7758fb6087cdcf5d9f45a9ebb11e05504 (diff)
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111909 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-diff/llvm-diff.cpp')
-rw-r--r--tools/llvm-diff/llvm-diff.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/llvm-diff/llvm-diff.cpp b/tools/llvm-diff/llvm-diff.cpp
index cc5d233db3..16a990fb28 100644
--- a/tools/llvm-diff/llvm-diff.cpp
+++ b/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)