File tree Expand file tree Collapse file tree 4 files changed +18
-1
lines changed
flang/include/flang/Optimizer/Dialect Expand file tree Collapse file tree 4 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ namespace fir {
22
22
class FIROpsDialect ;
23
23
class KindMapping ;
24
24
using KindTy = unsigned ;
25
+
26
+ namespace detail {
27
+ struct RecordTypeStorage ;
28
+ } // namespace detail
29
+
25
30
} // namespace fir
26
31
27
32
// ===----------------------------------------------------------------------===//
Original file line number Diff line number Diff line change @@ -31,6 +31,12 @@ class Location;
31
31
class Operation ;
32
32
class RankedTensorType ;
33
33
34
+ namespace detail {
35
+ struct DenseIntOrFPElementsAttrStorage ;
36
+ struct DenseStringElementsAttrStorage ;
37
+ struct StringAttrStorage ;
38
+ } // namespace detail
39
+
34
40
// ===----------------------------------------------------------------------===//
35
41
// Elements Attributes
36
42
// ===----------------------------------------------------------------------===//
Original file line number Diff line number Diff line change @@ -32,6 +32,12 @@ class RankedTensorType;
32
32
class StringAttr ;
33
33
class TypeRange ;
34
34
35
+ namespace detail {
36
+ struct FunctionTypeStorage ;
37
+ struct IntegerTypeStorage ;
38
+ struct TupleTypeStorage ;
39
+ } // namespace detail
40
+
35
41
// ===----------------------------------------------------------------------===//
36
42
// FloatType
37
43
// ===----------------------------------------------------------------------===//
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ class DefGen {
67
67
DefGen (const AttrOrTypeDef &def);
68
68
69
69
void emitDecl (raw_ostream &os) const {
70
- if (storageCls) {
70
+ if (storageCls && def. genStorageClass () ) {
71
71
NamespaceEmitter ns (os, def.getStorageNamespace ());
72
72
os << " struct " << def.getStorageClassName () << " ;\n " ;
73
73
}
You can’t perform that action at this time.
0 commit comments