[llvm] 3398697 - Prepare for LLVMMC headers cleanup
via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 9 02:09:39 PST 2022
Author: serge-sans-paille
Date: 2022-02-09T11:09:16+01:00
New Revision: 33986970a4372aa391331c60c8f23804e903cec2
URL: https://github.com/llvm/llvm-project/commit/33986970a4372aa391331c60c8f23804e903cec2
DIFF: https://github.com/llvm/llvm-project/commit/33986970a4372aa391331c60c8f23804e903cec2.diff
LOG: Prepare for LLVMMC headers cleanup
Be more explicit about which headers should be included in MC files generated by
tblgen.
See also: https://reviews.llvm.org/D119244
Added:
Modified:
llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp b/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
index c5dd1e6266965..d945da109b5cc 100644
--- a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
+++ b/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
@@ -2402,6 +2402,8 @@ static void emitDecodeInstruction(formatted_raw_ostream &OS) {
void FixedLenDecoderEmitter::run(raw_ostream &o) {
formatted_raw_ostream OS(o);
OS << "#include \"llvm/MC/MCInst.h\"\n";
+ OS << "#include \"llvm/MC/MCSubtargetInfo.h\"\n";
+ OS << "#include \"llvm/MC/SubtargetFeature.h\"\n";
OS << "#include \"llvm/Support/DataTypes.h\"\n";
OS << "#include \"llvm/Support/Debug.h\"\n";
OS << "#include \"llvm/Support/LEB128.h\"\n";
More information about the llvm-commits
mailing list