OSDN Git Service

Fix implicit include dependencies on SmallVector.h.
authorSimon Tatham <simon.tatham@arm.com>
Fri, 26 Jun 2020 12:47:33 +0000 (13:47 +0100)
committerSimon Tatham <simon.tatham@arm.com>
Fri, 26 Jun 2020 12:49:17 +0000 (13:49 +0100)
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.

llvm/include/llvm/Support/AArch64TargetParser.h
llvm/include/llvm/Support/ARMTargetParser.h

index a1d9543..b045e31 100644 (file)
@@ -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>
index 322e89e..4e76b3c 100644 (file)
@@ -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>