From c13a09a462807936f9eb17cc64f53ad7c9e8ddec Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 17 Jul 2022 02:18:55 -0700 Subject: [PATCH] [llvm] Fix header guards (NFC) Identified with llvm-header-guard. --- llvm/include/llvm/CodeGen/BasicBlockSectionsProfileReader.h | 6 +++--- llvm/include/llvm/Debuginfod/HTTPServer.h | 6 +++--- llvm/include/llvm/Demangle/ItaniumDemangle.h | 6 +++--- llvm/include/llvm/Demangle/StringView.h | 4 ++-- llvm/include/llvm/Demangle/Utility.h | 4 ++-- llvm/include/llvm/Object/DXContainer.h | 2 +- llvm/include/llvm/Object/OffloadBinary.h | 4 ++-- llvm/include/llvm/ObjectYAML/OffloadYAML.h | 2 +- llvm/include/llvm/Transforms/Utils/LowerAtomic.h | 6 +++--- llvm/include/llvm/Transforms/Utils/MisExpect.h | 5 +++++ llvm/include/llvm/WindowsDriver/MSVCPaths.h | 4 ++-- 11 files changed, 27 insertions(+), 22 deletions(-) diff --git a/llvm/include/llvm/CodeGen/BasicBlockSectionsProfileReader.h b/llvm/include/llvm/CodeGen/BasicBlockSectionsProfileReader.h index 7ae1304cced9..557339548581 100644 --- a/llvm/include/llvm/CodeGen/BasicBlockSectionsProfileReader.h +++ b/llvm/include/llvm/CodeGen/BasicBlockSectionsProfileReader.h @@ -12,8 +12,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_ANALYSIS_BASICBLOCKSECTIONSINFO_H -#define LLVM_ANALYSIS_BASICBLOCKSECTIONSINFO_H +#ifndef LLVM_CODEGEN_BASICBLOCKSECTIONSPROFILEREADER_H +#define LLVM_CODEGEN_BASICBLOCKSECTIONSPROFILEREADER_H #include "llvm/ADT/Optional.h" #include "llvm/ADT/SmallSet.h" @@ -106,4 +106,4 @@ ImmutablePass * createBasicBlockSectionsProfileReaderPass(const MemoryBuffer *Buf); } // namespace llvm -#endif // LLVM_ANALYSIS_BASICBLOCKSECTIONSINFO_H +#endif // LLVM_CODEGEN_BASICBLOCKSECTIONSPROFILEREADER_H diff --git a/llvm/include/llvm/Debuginfod/HTTPServer.h b/llvm/include/llvm/Debuginfod/HTTPServer.h index 410ba32b3f2e..15e611ec546f 100644 --- a/llvm/include/llvm/Debuginfod/HTTPServer.h +++ b/llvm/include/llvm/Debuginfod/HTTPServer.h @@ -13,8 +13,8 @@ /// //===----------------------------------------------------------------------===// -#ifndef LLVM_SUPPORT_HTTP_SERVER_H -#define LLVM_SUPPORT_HTTP_SERVER_H +#ifndef LLVM_DEBUGINFOD_HTTPSERVER_H +#define LLVM_DEBUGINFOD_HTTPSERVER_H #include "llvm/ADT/StringRef.h" #include "llvm/Support/Error.h" @@ -120,4 +120,4 @@ public: }; } // end namespace llvm -#endif // LLVM_SUPPORT_HTTP_SERVER_H +#endif // LLVM_DEBUGINFOD_HTTPSERVER_H diff --git a/llvm/include/llvm/Demangle/ItaniumDemangle.h b/llvm/include/llvm/Demangle/ItaniumDemangle.h index 959632f13e1e..6d4f6222af44 100644 --- a/llvm/include/llvm/Demangle/ItaniumDemangle.h +++ b/llvm/include/llvm/Demangle/ItaniumDemangle.h @@ -13,8 +13,8 @@ // //===----------------------------------------------------------------------===// -#ifndef DEMANGLE_ITANIUMDEMANGLE_H -#define DEMANGLE_ITANIUMDEMANGLE_H +#ifndef LLVM_DEMANGLE_ITANIUMDEMANGLE_H +#define LLVM_DEMANGLE_ITANIUMDEMANGLE_H #include "DemangleConfig.h" #include "StringView.h" @@ -5477,4 +5477,4 @@ struct ManglingParser : AbstractManglingParser, Alloc> { DEMANGLE_NAMESPACE_END -#endif // DEMANGLE_ITANIUMDEMANGLE_H +#endif // LLVM_DEMANGLE_ITANIUMDEMANGLE_H diff --git a/llvm/include/llvm/Demangle/StringView.h b/llvm/include/llvm/Demangle/StringView.h index 6bbb8837fed1..30580af282fb 100644 --- a/llvm/include/llvm/Demangle/StringView.h +++ b/llvm/include/llvm/Demangle/StringView.h @@ -13,8 +13,8 @@ // //===----------------------------------------------------------------------===// -#ifndef DEMANGLE_STRINGVIEW_H -#define DEMANGLE_STRINGVIEW_H +#ifndef LLVM_DEMANGLE_STRINGVIEW_H +#define LLVM_DEMANGLE_STRINGVIEW_H #include "DemangleConfig.h" #include diff --git a/llvm/include/llvm/Demangle/Utility.h b/llvm/include/llvm/Demangle/Utility.h index ca7e44b948c7..691c34067d7f 100644 --- a/llvm/include/llvm/Demangle/Utility.h +++ b/llvm/include/llvm/Demangle/Utility.h @@ -13,8 +13,8 @@ // //===----------------------------------------------------------------------===// -#ifndef DEMANGLE_UTILITY_H -#define DEMANGLE_UTILITY_H +#ifndef LLVM_DEMANGLE_UTILITY_H +#define LLVM_DEMANGLE_UTILITY_H #include "StringView.h" #include diff --git a/llvm/include/llvm/Object/DXContainer.h b/llvm/include/llvm/Object/DXContainer.h index 7aa7d8ecf4c7..9ec5b5e6b1b2 100644 --- a/llvm/include/llvm/Object/DXContainer.h +++ b/llvm/include/llvm/Object/DXContainer.h @@ -121,4 +121,4 @@ public: } // namespace object } // namespace llvm -#endif // LLVM_OBJECT_DXCONTAINERFILE_H +#endif // LLVM_OBJECT_DXCONTAINER_H diff --git a/llvm/include/llvm/Object/OffloadBinary.h b/llvm/include/llvm/Object/OffloadBinary.h index 5afc3ed295ae..311e21f1e338 100644 --- a/llvm/include/llvm/Object/OffloadBinary.h +++ b/llvm/include/llvm/Object/OffloadBinary.h @@ -14,8 +14,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_BINARYFORMAT_OFFLOADING_H -#define LLVM_BINARYFORMAT_OFFLOADING_H +#ifndef LLVM_OBJECT_OFFLOADBINARY_H +#define LLVM_OBJECT_OFFLOADBINARY_H #include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringRef.h" diff --git a/llvm/include/llvm/ObjectYAML/OffloadYAML.h b/llvm/include/llvm/ObjectYAML/OffloadYAML.h index a4fdbce0b320..fc7a8cc7e78e 100644 --- a/llvm/include/llvm/ObjectYAML/OffloadYAML.h +++ b/llvm/include/llvm/ObjectYAML/OffloadYAML.h @@ -76,4 +76,4 @@ template <> struct MappingTraits { } // end namespace yaml } // end namespace llvm -#endif // LLVM_OBJECTYAML_ARCHIVEYAML_H +#endif // LLVM_OBJECTYAML_OFFLOADYAML_H diff --git a/llvm/include/llvm/Transforms/Utils/LowerAtomic.h b/llvm/include/llvm/Transforms/Utils/LowerAtomic.h index c85f8e3a5646..43a407d35909 100644 --- a/llvm/include/llvm/Transforms/Utils/LowerAtomic.h +++ b/llvm/include/llvm/Transforms/Utils/LowerAtomic.h @@ -11,8 +11,8 @@ /// //===----------------------------------------------------------------------===// -#ifndef LLVM_TRANSFORMS_SCALAR_LOWERATOMIC_H -#define LLVM_TRANSFORMS_SCALAR_LOWERATOMIC_H +#ifndef LLVM_TRANSFORMS_UTILS_LOWERATOMIC_H +#define LLVM_TRANSFORMS_UTILS_LOWERATOMIC_H #include "llvm/IR/Instructions.h" @@ -34,4 +34,4 @@ Value *buildAtomicRMWValue(AtomicRMWInst::BinOp Op, IRBuilderBase &Builder, Value *Loaded, Value *Inc); } -#endif // LLVM_TRANSFORMS_SCALAR_LOWERATOMIC_H +#endif // LLVM_TRANSFORMS_UTILS_LOWERATOMIC_H diff --git a/llvm/include/llvm/Transforms/Utils/MisExpect.h b/llvm/include/llvm/Transforms/Utils/MisExpect.h index 064eeac4c669..75eb97646770 100644 --- a/llvm/include/llvm/Transforms/Utils/MisExpect.h +++ b/llvm/include/llvm/Transforms/Utils/MisExpect.h @@ -14,6 +14,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_TRANSFORMS_UTILS_MISEXPECT_H +#define LLVM_TRANSFORMS_UTILS_MISEXPECT_H + #include "llvm/ADT/SmallVector.h" #include "llvm/IR/Function.h" #include "llvm/IR/Instructions.h" @@ -75,3 +78,5 @@ void checkExpectAnnotations(Instruction &I, } // namespace misexpect } // namespace llvm + +#endif diff --git a/llvm/include/llvm/WindowsDriver/MSVCPaths.h b/llvm/include/llvm/WindowsDriver/MSVCPaths.h index 7256a4f66eaa..66c93cd55e20 100644 --- a/llvm/include/llvm/WindowsDriver/MSVCPaths.h +++ b/llvm/include/llvm/WindowsDriver/MSVCPaths.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_SUPPORT_MSVCPATHS_H -#define LLVM_SUPPORT_MSVCPATHS_H +#ifndef LLVM_WINDOWSDRIVER_MSVCPATHS_H +#define LLVM_WINDOWSDRIVER_MSVCPATHS_H #include "llvm/ADT/Optional.h" #include "llvm/ADT/SmallString.h"