From d75681827a08a0b673139a303c43e4c27551b15e Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Mon, 3 Mar 2025 09:26:03 +0000 Subject: [PATCH] [CodeGen][NPM]RAGreedy: Put up include guard in the header --- llvm/include/llvm/CodeGen/RegAllocGreedyPass.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/include/llvm/CodeGen/RegAllocGreedyPass.h b/llvm/include/llvm/CodeGen/RegAllocGreedyPass.h index 5c0cbc3c4045c..1281ca851f069 100644 --- a/llvm/include/llvm/CodeGen/RegAllocGreedyPass.h +++ b/llvm/include/llvm/CodeGen/RegAllocGreedyPass.h @@ -5,6 +5,9 @@ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// +#ifndef LLVM_CODEGEN_REGALLOC_GREEDY_PASS_H +#define LLVM_CODEGEN_REGALLOC_GREEDY_PASS_H + #include "llvm/CodeGen/MachineFunctionPass.h" #include "llvm/CodeGen/RegAllocCommon.h" #include "llvm/CodeGen/RegAllocFast.h" @@ -42,3 +45,5 @@ class RAGreedyPass : public PassInfoMixin { private: Options Opts; }; + +#endif // LLVM_CODEGEN_REGALLOC_GREEDY_PASS_H