[llvm] a3a346c - [llvm] Adjust inlucdes of ArrayRef.h (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 10 00:09:14 PST 2023
Author: Kazu Hirata
Date: 2023-12-10T00:09:07-08:00
New Revision: a3a346c2037f4547985d4c2e199e65a25aa42d55
URL: https://github.com/llvm/llvm-project/commit/a3a346c2037f4547985d4c2e199e65a25aa42d55
DIFF: https://github.com/llvm/llvm-project/commit/a3a346c2037f4547985d4c2e199e65a25aa42d55.diff
LOG: [llvm] Adjust inlucdes of ArrayRef.h (NFC)
Without this patch, CallingConvLower.h is relying on the transitive
include of ArrayRef.h in TypeSize.h, which doesn't need ArrayRef.h.
Added:
Modified:
llvm/include/llvm/CodeGen/CallingConvLower.h
llvm/include/llvm/Support/TypeSize.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/CallingConvLower.h b/llvm/include/llvm/CodeGen/CallingConvLower.h
index 0989fae54b3ac..932a2a94ab1f1 100644
--- a/llvm/include/llvm/CodeGen/CallingConvLower.h
+++ b/llvm/include/llvm/CodeGen/CallingConvLower.h
@@ -14,6 +14,7 @@
#ifndef LLVM_CODEGEN_CALLINGCONVLOWER_H
#define LLVM_CODEGEN_CALLINGCONVLOWER_H
+#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/CodeGen/Register.h"
#include "llvm/CodeGen/TargetCallingConv.h"
diff --git a/llvm/include/llvm/Support/TypeSize.h b/llvm/include/llvm/Support/TypeSize.h
index 4d9d4f400e927..b00ebf9e8c454 100644
--- a/llvm/include/llvm/Support/TypeSize.h
+++ b/llvm/include/llvm/Support/TypeSize.h
@@ -15,7 +15,6 @@
#ifndef LLVM_SUPPORT_TYPESIZE_H
#define LLVM_SUPPORT_TYPESIZE_H
-#include "llvm/ADT/ArrayRef.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/raw_ostream.h"
More information about the llvm-commits
mailing list