1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Add header guards to some headers that are missing them

Also adjust some of dsymutil's headers to put the header guards at the top,
otherwise the compiler will not recognize them as header guards.

llvm-svn: 341323
This commit is contained in:
Argyrios Kyrtzidis 2018-09-03 16:22:05 +00:00
parent a4c1394dea
commit 048516922a
10 changed files with 42 additions and 12 deletions

View File

@ -10,6 +10,9 @@
// This file implements defines a visitor class and a helper function that find
// all indirect call-sites in a function.
#ifndef LLVM_ANALYSIS_INDIRECTCALLSITEVISITOR_H
#define LLVM_ANALYSIS_INDIRECTCALLSITEVISITOR_H
#include "llvm/IR/InstVisitor.h"
#include <vector>
@ -33,3 +36,5 @@ inline std::vector<Instruction *> findIndirectCallSites(Function &F) {
return ICV.IndirectCallInsts;
}
}
#endif

View File

@ -12,6 +12,9 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIB_TARGET_ARM_ARMMACROFUSION_H
#define LLVM_LIB_TARGET_ARM_ARMMACROFUSION_H
#include "llvm/CodeGen/MachineScheduler.h"
namespace llvm {
@ -22,3 +25,5 @@ namespace llvm {
std::unique_ptr<ScheduleDAGMutation> createARMMacroFusionDAGMutation();
} // llvm
#endif

View File

@ -12,6 +12,9 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIB_TARGET_X86_X86MACROFUSION_H
#define LLVM_LIB_TARGET_X86_X86MACROFUSION_H
#include "llvm/CodeGen/MachineScheduler.h"
namespace llvm {
@ -23,3 +26,5 @@ std::unique_ptr<ScheduleDAGMutation>
createX86MacroFusionDAGMutation();
} // end namespace llvm
#endif

View File

@ -13,6 +13,9 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIB_TRANSFORMS_AGGRESSIVEINSTCOMBINE_COMBINEINTERNAL_H
#define LLVM_LIB_TRANSFORMS_AGGRESSIVEINSTCOMBINE_COMBINEINTERNAL_H
#include "llvm/ADT/MapVector.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Analysis/AliasAnalysis.h"
@ -119,3 +122,5 @@ private:
void ReduceExpressionDag(Type *SclTy);
};
} // end namespace llvm.
#endif

View File

@ -7,6 +7,9 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_DSYMUTIL_CFBUNDLE_H
#define LLVM_TOOLS_DSYMUTIL_CFBUNDLE_H
#include "llvm/ADT/StringRef.h"
#include <string>
@ -24,3 +27,5 @@ CFBundleInfo getBundleInfo(llvm::StringRef ExePath);
} // end namespace dsymutil
} // end namespace llvm
#endif

View File

@ -7,13 +7,13 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_DSYMUTIL_COMPILEUNIT_H
#define LLVM_TOOLS_DSYMUTIL_COMPILEUNIT_H
#include "llvm/ADT/IntervalMap.h"
#include "llvm/CodeGen/DIE.h"
#include "llvm/DebugInfo/DWARF/DWARFUnit.h"
#ifndef LLVM_TOOLS_DSYMUTIL_COMPILEUNIT_H
#define LLVM_TOOLS_DSYMUTIL_COMPILEUNIT_H
namespace llvm {
namespace dsymutil {

View File

@ -7,6 +7,9 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_DSYMUTIL_DECLCONTEXT_H
#define LLVM_TOOLS_DSYMUTIL_DECLCONTEXT_H
#include "CompileUnit.h"
#include "NonRelocatableStringpool.h"
#include "llvm/ADT/DenseMap.h"
@ -16,9 +19,6 @@
#include "llvm/DebugInfo/DWARF/DWARFDie.h"
#include "llvm/Support/Path.h"
#ifndef LLVM_TOOLS_DSYMUTIL_DECLCONTEXT_H
#define LLVM_TOOLS_DSYMUTIL_DECLCONTEXT_H
namespace llvm {
namespace dsymutil {

View File

@ -7,6 +7,9 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_DSYMUTIL_DWARFSTREAMER_H
#define LLVM_TOOLS_DSYMUTIL_DWARFSTREAMER_H
#include "CompileUnit.h"
#include "DebugMap.h"
#include "LinkUtils.h"
@ -32,9 +35,6 @@
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetOptions.h"
#ifndef LLVM_TOOLS_DSYMUTIL_DWARFSTREAMER_H
#define LLVM_TOOLS_DSYMUTIL_DWARFSTREAMER_H
namespace llvm {
namespace dsymutil {

View File

@ -11,14 +11,14 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_UNITTESTS_ADT_TEST_GRAPH_H
#define LLVM_UNITTESTS_ADT_TEST_GRAPH_H
#include "llvm/ADT/GraphTraits.h"
#include <cassert>
#include <climits>
#include <utility>
#ifndef LLVM_UNITTESTS_ADT_TEST_GRAPH_H
#define LLVM_UNITTESTS_ADT_TEST_GRAPH_H
namespace llvm {
/// Graph<N> - A graph with N nodes. Note that N can be at most 8.

View File

@ -7,6 +7,9 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_UNITTESTS_TOOLS_LLVMEXEGESIS_ASSEMBLERUTILS_H
#define LLVM_UNITTESTS_TOOLS_LLVMEXEGESIS_ASSEMBLERUTILS_H
#include "Assembler.h"
#include "BenchmarkRunner.h"
#include "Target.h"
@ -85,3 +88,5 @@ private:
};
} // namespace exegesis
#endif