From c76da0f5e772f64cbc3d7a5ac695190978c59f03 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Thu, 6 Aug 2026 12:29:28 -0700 Subject: [PATCH] Consistent header guards One bad offender here was src/passes/call-utils.h --- src/passes/call-utils.h | 6 +++--- src/wasm-annotations.h | 6 +++--- src/wasm-features.h | 6 +++--- src/wasm-stack.h | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/passes/call-utils.h b/src/passes/call-utils.h index 51b8b3fa4ec..650c6a4e3ac 100644 --- a/src/passes/call-utils.h +++ b/src/passes/call-utils.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef wasm_ir_function_h -#define wasm_ir_function_h +#ifndef wasm_passes_call_utils_h +#define wasm_passes_call_utils_h #include @@ -153,4 +153,4 @@ convertToDirectCalls(T* curr, } // namespace wasm::CallUtils -#endif // wasm_ir_function_h +#endif // wasm_passes_call_utils_h diff --git a/src/wasm-annotations.h b/src/wasm-annotations.h index 11c766ecf3a..b2ba766ee6d 100644 --- a/src/wasm-annotations.h +++ b/src/wasm-annotations.h @@ -18,8 +18,8 @@ // Support for code annotations. // -#ifndef wasm_annotations_h -#define wasm_annotations_h +#ifndef wasm_wasm_annotations_h +#define wasm_wasm_annotations_h #include "support/name.h" @@ -34,4 +34,4 @@ extern const Name ToolchainInlineHint; } // namespace wasm::Annotations -#endif // wasm_annotations_h +#endif // wasm_wasm_annotations_h diff --git a/src/wasm-features.h b/src/wasm-features.h index 2d64953631e..0a0c69c3610 100644 --- a/src/wasm-features.h +++ b/src/wasm-features.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef wasm_features_h -#define wasm_features_h +#ifndef wasm_wasm_features_h +#define wasm_wasm_features_h #include #include @@ -259,4 +259,4 @@ struct FeatureSet { } // namespace wasm -#endif // wasm_features_h +#endif // wasm_wasm_features_h diff --git a/src/wasm-stack.h b/src/wasm-stack.h index 71a9bda9ff2..fede0bf4ccf 100644 --- a/src/wasm-stack.h +++ b/src/wasm-stack.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef wasm_stack_h -#define wasm_stack_h +#ifndef wasm_wasm_stack_h +#define wasm_wasm_stack_h #include "ir/branch-utils.h" #include "ir/find_all.h" @@ -656,4 +656,4 @@ namespace std { std::ostream& operator<<(std::ostream& o, wasm::StackInst& inst); } // namespace std -#endif // wasm_stack_h +#endif // wasm_wasm_stack_h