diff options
Diffstat (limited to 'tools/llvm-diff')
| -rw-r--r-- | tools/llvm-diff/DiffConsumer.h | 3 | ||||
| -rw-r--r-- | tools/llvm-diff/DiffLog.cpp | 1 | ||||
| -rw-r--r-- | tools/llvm-diff/DifferenceEngine.cpp | 11 | ||||
| -rw-r--r-- | tools/llvm-diff/DifferenceEngine.h | 1 | ||||
| -rw-r--r-- | tools/llvm-diff/Makefile | 17 | ||||
| -rw-r--r-- | tools/llvm-diff/llvm-diff.cpp | 2 |
6 files changed, 9 insertions, 26 deletions
diff --git a/tools/llvm-diff/DiffConsumer.h b/tools/llvm-diff/DiffConsumer.h index 855f6884e65b..82f5ce598b44 100644 --- a/tools/llvm-diff/DiffConsumer.h +++ b/tools/llvm-diff/DiffConsumer.h @@ -17,11 +17,12 @@ #include "DiffLog.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/SmallVector.h" -#include "llvm/ADT/StringRef.h" +#include "llvm/IR/Value.h" #include "llvm/Support/Casting.h" #include "llvm/Support/raw_ostream.h" namespace llvm { +class StringRef; class Module; class Value; class Function; diff --git a/tools/llvm-diff/DiffLog.cpp b/tools/llvm-diff/DiffLog.cpp index ed86058f1af1..898749e73bd2 100644 --- a/tools/llvm-diff/DiffLog.cpp +++ b/tools/llvm-diff/DiffLog.cpp @@ -13,7 +13,6 @@ #include "DiffLog.h" #include "DiffConsumer.h" -#include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringRef.h" #include "llvm/IR/Instructions.h" diff --git a/tools/llvm-diff/DifferenceEngine.cpp b/tools/llvm-diff/DifferenceEngine.cpp index 456560b093ab..df208a26ab7d 100644 --- a/tools/llvm-diff/DifferenceEngine.cpp +++ b/tools/llvm-diff/DifferenceEngine.cpp @@ -16,7 +16,6 @@ #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DenseSet.h" #include "llvm/ADT/SmallVector.h" -#include "llvm/ADT/StringRef.h" #include "llvm/ADT/StringSet.h" #include "llvm/IR/CFG.h" #include "llvm/IR/CallSite.h" @@ -210,7 +209,8 @@ class FunctionDifferenceEngine { if (!LeftI->use_empty()) TentativeValues.insert(std::make_pair(LeftI, RightI)); - ++LI, ++RI; + ++LI; + ++RI; } while (LI != LE); // This is sufficient: we can't get equality of // terminators if there are residual instructions. @@ -555,7 +555,9 @@ void FunctionDifferenceEngine::runBlockDiff(BasicBlock::iterator LStart, PI = Path.begin(), PE = Path.end(); while (PI != PE && *PI == DC_match) { unify(&*LI, &*RI); - ++PI, ++LI, ++RI; + ++PI; + ++LI; + ++RI; } for (; PI != PE; ++PI) { @@ -589,7 +591,8 @@ void FunctionDifferenceEngine::runBlockDiff(BasicBlock::iterator LStart, while (LI != LE) { assert(RI != RE); unify(&*LI, &*RI); - ++LI, ++RI; + ++LI; + ++RI; } // If the terminators have different kinds, but one is an invoke and the diff --git a/tools/llvm-diff/DifferenceEngine.h b/tools/llvm-diff/DifferenceEngine.h index f0d831144a4c..7f084a377f0c 100644 --- a/tools/llvm-diff/DifferenceEngine.h +++ b/tools/llvm-diff/DifferenceEngine.h @@ -17,7 +17,6 @@ #include "DiffConsumer.h" #include "DiffLog.h" -#include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringRef.h" #include <utility> diff --git a/tools/llvm-diff/Makefile b/tools/llvm-diff/Makefile deleted file mode 100644 index bd97a6a9f5e9..000000000000 --- a/tools/llvm-diff/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -##===- tools/llvm-diff/Makefile ----------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -LEVEL := ../.. -TOOLNAME := llvm-diff -LINK_COMPONENTS := asmparser bitreader irreader - -# This tool has no plugins, optimize startup time. -TOOL_NO_EXPORTS := 1 - -include $(LEVEL)/Makefile.common diff --git a/tools/llvm-diff/llvm-diff.cpp b/tools/llvm-diff/llvm-diff.cpp index ae58f5caa913..e449d6994784 100644 --- a/tools/llvm-diff/llvm-diff.cpp +++ b/tools/llvm-diff/llvm-diff.cpp @@ -13,8 +13,6 @@ #include "DiffLog.h" #include "DifferenceEngine.h" -#include "llvm/ADT/DenseMap.h" -#include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringRef.h" #include "llvm/IR/LLVMContext.h" #include "llvm/IR/Module.h" |
