mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
Make the header self-contained and follow #include guidelines.
llvm-svn: 109774
This commit is contained in:
parent
642f4c66c3
commit
1e34d6da8e
@ -7,31 +7,29 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// 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 <llvm/Support/raw_ostream.h>
|
||||
#include <llvm/Support/type_traits.h>
|
||||
#include <llvm/Support/ErrorHandling.h>
|
||||
#include <llvm/Support/CallSite.h>
|
||||
|
||||
#include "DifferenceEngine.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 <utility>
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
|
@ -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 {
|
||||
|
@ -1,27 +1,36 @@
|
||||
//===-- 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 "DifferenceEngine.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 <string>
|
||||
#include <utility>
|
||||
|
||||
#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>
|
||||
|
||||
// Required to parse .bc files.
|
||||
#include <llvm/Support/MemoryBuffer.h>
|
||||
#include <llvm/Bitcode/ReaderWriter.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 "DifferenceEngine.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user