summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-diff
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-07-29 18:08:23 +0000
committerJohn McCall <rjmccall@apple.com>2010-07-29 18:08:23 +0000
commit61483f0e1f9e4e1fc69d76b4eccc9e1c9fbac13e (patch)
tree07464224244b847bbe921d3387d29252eb546630 /llvm/tools/llvm-diff
parent0428a61e451c1d7c3b8385c1935955374a928884 (diff)
downloadbcm5719-llvm-61483f0e1f9e4e1fc69d76b4eccc9e1c9fbac13e.tar.gz
bcm5719-llvm-61483f0e1f9e4e1fc69d76b4eccc9e1c9fbac13e.zip
Make the header self-contained and follow #include guidelines.
llvm-svn: 109774
Diffstat (limited to 'llvm/tools/llvm-diff')
-rw-r--r--llvm/tools/llvm-diff/DifferenceEngine.cpp36
-rw-r--r--llvm/tools/llvm-diff/DifferenceEngine.h10
-rw-r--r--llvm/tools/llvm-diff/llvm-diff.cpp49
3 files changed, 52 insertions, 43 deletions
diff --git a/llvm/tools/llvm-diff/DifferenceEngine.cpp b/llvm/tools/llvm-diff/DifferenceEngine.cpp
index 55b1a362a83..7436d1ed4e3 100644
--- a/llvm/tools/llvm-diff/DifferenceEngine.cpp
+++ b/llvm/tools/llvm-diff/DifferenceEngine.cpp
@@ -7,30 +7,28 @@
//
//===----------------------------------------------------------------------===//
//
-// This header defines the interface to the LLVM difference engine,
-// which structurally compares functions within a module.
+// This header defines the implementation of the LLVM difference
+// engine, which structurally compares global values within a module.
//
//===----------------------------------------------------------------------===//
-#include <utility>
-
-#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/Module.h>
-#include <llvm/Function.h>
-#include <llvm/Instructions.h>
-#include <llvm/Support/CFG.h>
+#include "DifferenceEngine.h"
-#include <llvm/Support/raw_ostream.h>
-#include <llvm/Support/type_traits.h>
-#include <llvm/Support/ErrorHandling.h>
-#include <llvm/Support/CallSite.h>
+#include "llvm/Function.h"
+#include "llvm/Instructions.h"
+#include "llvm/Module.h"
+#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/Support/CallSite.h"
+#include "llvm/Support/CFG.h"
+#include "llvm/Support/ErrorHandling.h"
+#include "llvm/Support/raw_ostream.h"
+#include "llvm/Support/type_traits.h"
-#include "DifferenceEngine.h"
+#include <utility>
using namespace llvm;
diff --git a/llvm/tools/llvm-diff/DifferenceEngine.h b/llvm/tools/llvm-diff/DifferenceEngine.h
index 9d0ebecc53d..bc331317344 100644
--- a/llvm/tools/llvm-diff/DifferenceEngine.h
+++ b/llvm/tools/llvm-diff/DifferenceEngine.h
@@ -15,17 +15,19 @@
#ifndef _LLVM_DIFFERENCE_ENGINE_H_
#define _LLVM_DIFFERENCE_ENGINE_H_
+#include "llvm/ADT/SmallVector.h"
+#include "llvm/ADT/StringRef.h"
+
#include <utility>
-#include <llvm/ADT/SmallVector.h>
-#include <llvm/ADT/StringRef.h>
namespace llvm {
+ class Function;
+ class GlobalValue;
+ class Instruction;
class LLVMContext;
class Module;
- class Function;
class Twine;
class Value;
- class GlobalValue;
/// A class for performing structural comparisons of LLVM assembly.
class DifferenceEngine {
diff --git a/llvm/tools/llvm-diff/llvm-diff.cpp b/llvm/tools/llvm-diff/llvm-diff.cpp
index 1a3e1aeef8a..9d8a7d3ec7a 100644
--- a/llvm/tools/llvm-diff/llvm-diff.cpp
+++ b/llvm/tools/llvm-diff/llvm-diff.cpp
@@ -1,27 +1,36 @@
-#include <string>
-#include <utility>
+//===-- llvm-diff.cpp - Module comparator command-line driver ---*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file defines the command-line driver for the difference engine.
+//
+//===----------------------------------------------------------------------===//
-#include <llvm/ADT/StringRef.h>
-#include <llvm/ADT/SmallVector.h>
-#include <llvm/ADT/DenseMap.h>
-
-// Required to parse .ll files.
-#include <llvm/Support/SourceMgr.h>
-#include <llvm/Assembly/Parser.h>
+#include "DifferenceEngine.h"
-// Required to parse .bc files.
-#include <llvm/Support/MemoryBuffer.h>
-#include <llvm/Bitcode/ReaderWriter.h>
+#include "llvm/Instructions.h"
+#include "llvm/LLVMContext.h"
+#include "llvm/Module.h"
+#include "llvm/Type.h"
+#include "llvm/Assembly/Parser.h"
+#include "llvm/Bitcode/ReaderWriter.h"
+#include "llvm/ADT/DenseMap.h"
+#include "llvm/ADT/SmallVector.h"
+#include "llvm/ADT/StringRef.h"
+#include "llvm/Support/CommandLine.h"
+#include "llvm/Support/ErrorHandling.h"
+#include "llvm/Support/MemoryBuffer.h"
+#include "llvm/Support/raw_ostream.h"
+#include "llvm/Support/SourceMgr.h"
-#include <llvm/Support/CommandLine.h>
-#include <llvm/Support/raw_ostream.h>
-#include <llvm/Support/ErrorHandling.h>
-#include <llvm/LLVMContext.h>
-#include <llvm/Module.h>
-#include <llvm/Type.h>
-#include <llvm/Instructions.h>
+#include <string>
+#include <utility>
-#include "DifferenceEngine.h"
using namespace llvm;
OpenPOWER on IntegriCloud