diff options
author | Raphael Isemann <teemperor@gmail.com> | 2021-10-18 09:53:45 +0200 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2021-10-18 10:06:11 +0200 |
commit | de4d2f80b75e2a1e4b0ac5c25e20f20839633688 (patch) | |
tree | 57563bc547befcdc0797a58e3be4ed7d96466593 | |
parent | 6e63f96e11ee9af300b166c994980d3b80cea0c7 (diff) | |
download | llvm-de4d2f80b75e2a1e4b0ac5c25e20f20839633688.zip llvm-de4d2f80b75e2a1e4b0ac5c25e20f20839633688.tar.gz llvm-de4d2f80b75e2a1e4b0ac5c25e20f20839633688.tar.bz2 |
Fix cyclic header dependency between Support<->Option due to RISCVISAInfo
This was introduced in D105168 which added RISCVISAInfo.h.
-rw-r--r-- | llvm/include/llvm/Support/RISCVISAInfo.h | 4 | ||||
-rw-r--r-- | llvm/lib/Support/RISCVISAInfo.cpp | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/RISCVISAInfo.h b/llvm/include/llvm/Support/RISCVISAInfo.h index 26044cf..fe8599e 100644 --- a/llvm/include/llvm/Support/RISCVISAInfo.h +++ b/llvm/include/llvm/Support/RISCVISAInfo.h @@ -12,7 +12,6 @@ #include "llvm/ADT/Optional.h" #include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringRef.h" -#include "llvm/Option/ArgList.h" #include "llvm/Support/Error.h" #include <map> @@ -20,6 +19,9 @@ #include <vector> namespace llvm { +namespace opt { +class ArgList; +} struct RISCVExtensionInfo { std::string ExtName; unsigned MajorVersion; diff --git a/llvm/lib/Support/RISCVISAInfo.cpp b/llvm/lib/Support/RISCVISAInfo.cpp index e0bf9ef..795d77d 100644 --- a/llvm/lib/Support/RISCVISAInfo.cpp +++ b/llvm/lib/Support/RISCVISAInfo.cpp @@ -11,6 +11,7 @@ #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringRef.h" +#include "llvm/Option/ArgList.h" #include "llvm/Support/Errc.h" #include "llvm/Support/Error.h" #include "llvm/Support/raw_ostream.h" |