projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use move semantics if possible to construct ConstantRanges.
[oota-llvm.git]
/
tools
/
llvm-diff
/
llvm-diff.cpp
diff --git
a/tools/llvm-diff/llvm-diff.cpp
b/tools/llvm-diff/llvm-diff.cpp
index 774169bcde170b2f511672f30eb3307cca5567be..6eca1e2bfcdec15f111a3b91e69bbbd9283af047 100644
(file)
--- a/
tools/llvm-diff/llvm-diff.cpp
+++ b/
tools/llvm-diff/llvm-diff.cpp
@@
-13,19
+13,17
@@
#include "DiffLog.h"
#include "DifferenceEngine.h"
#include "DiffLog.h"
#include "DifferenceEngine.h"
-
-#include "llvm/LLVMContext.h"
-#include "llvm/Module.h"
-#include "llvm/Type.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.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"
+#include "llvm/IR/Type.h"
+#include "llvm/IRReader/IRReader.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/CommandLine.h"
-#include "llvm/Support/IRReader.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/MemoryBuffer.h"
-#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/SourceMgr.h"
-
+#include "llvm/Support/raw_ostream.h"
#include <string>
#include <utility>
#include <string>
#include <utility>
@@
-78,8
+76,8
@@
int main(int argc, char **argv) {
Module *RModule = ReadModule(Context, RightFilename);
if (!LModule || !RModule) return 1;
Module *RModule = ReadModule(Context, RightFilename);
if (!LModule || !RModule) return 1;
- DiffConsumer Consumer
(LModule, RModule)
;
- DifferenceEngine Engine(Con
text, Con
sumer);
+ DiffConsumer Consumer;
+ DifferenceEngine Engine(Consumer);
// If any global names were given, just diff those.
if (!GlobalsToCompare.empty()) {
// If any global names were given, just diff those.
if (!GlobalsToCompare.empty()) {