[llvm] 41eb639 - Fix implicit include dependencies on SmallVector.h.
Simon Tatham via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 26 05:49:56 PDT 2020
Author: Simon Tatham
Date: 2020-06-26T13:49:17+01:00
New Revision: 41eb63929183c0913886c407b925f1716234cf8e
URL: https://github.com/llvm/llvm-project/commit/41eb63929183c0913886c407b925f1716234cf8e
DIFF: https://github.com/llvm/llvm-project/commit/41eb63929183c0913886c407b925f1716234cf8e.diff
LOG: Fix implicit include dependencies on SmallVector.h.
Both `AArch64TargetParser.h` and `ARMTargetParser.h` refer to
`SmallVectorImpl` without directly including the header that defines
it, which works fine until nothing else happens to include it anyway.
Added:
Modified:
llvm/include/llvm/Support/AArch64TargetParser.h
llvm/include/llvm/Support/ARMTargetParser.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/AArch64TargetParser.h b/llvm/include/llvm/Support/AArch64TargetParser.h
index a1d9543fcc58..b045e31bc92a 100644
--- a/llvm/include/llvm/Support/AArch64TargetParser.h
+++ b/llvm/include/llvm/Support/AArch64TargetParser.h
@@ -14,6 +14,7 @@
#ifndef LLVM_SUPPORT_AARCH64TARGETPARSERCOMMON_H
#define LLVM_SUPPORT_AARCH64TARGETPARSERCOMMON_H
+#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/ARMTargetParser.h"
#include <vector>
diff --git a/llvm/include/llvm/Support/ARMTargetParser.h b/llvm/include/llvm/Support/ARMTargetParser.h
index 322e89e3d063..4e76b3c4b83e 100644
--- a/llvm/include/llvm/Support/ARMTargetParser.h
+++ b/llvm/include/llvm/Support/ARMTargetParser.h
@@ -14,6 +14,7 @@
#ifndef LLVM_SUPPORT_ARMTARGETPARSER_H
#define LLVM_SUPPORT_ARMTARGETPARSER_H
+#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/ARMBuildAttributes.h"
#include <vector>
More information about the llvm-commits
mailing list