From ce57f188ecac2657ab2738960e1dcc214cc860cd Mon Sep 17 00:00:00 2001 From: Thomas Symalla Date: Wed, 17 Jul 2024 14:47:37 +0200 Subject: [PATCH] Add potentially missing includes in auto-generated .cpp file. --- lib/TableGen/GenDialect.cpp | 4 ++++ test/example/generated/ExampleDialect.cpp.inc | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/lib/TableGen/GenDialect.cpp b/lib/TableGen/GenDialect.cpp index f533b13..cb37077 100644 --- a/lib/TableGen/GenDialect.cpp +++ b/lib/TableGen/GenDialect.cpp @@ -236,8 +236,12 @@ void llvm_dialects::genDialectDefs(raw_ostream& out, RecordKeeper& records) { #include "llvm/ADT/SmallString.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringExtras.h" + #include "llvm/IR/InstrTypes.h" +#include "llvm/IR/Instructions.h" #include "llvm/IR/Module.h" + +#include )"; if (!noMemoryEffects()) { diff --git a/test/example/generated/ExampleDialect.cpp.inc b/test/example/generated/ExampleDialect.cpp.inc index bddf329..2463100 100644 --- a/test/example/generated/ExampleDialect.cpp.inc +++ b/test/example/generated/ExampleDialect.cpp.inc @@ -12,9 +12,13 @@ #include "llvm/ADT/SmallString.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringExtras.h" + #include "llvm/IR/InstrTypes.h" +#include "llvm/IR/Instructions.h" #include "llvm/IR/Module.h" +#include + #include "llvm/Support/ModRef.h" #include "llvm/Support/raw_ostream.h"