@@ -1172,16 +1172,16 @@ class DICompileUnit : public DIScope {
1172
1172
DIGlobalVariableExpressionArray GlobalVariables,
1173
1173
DIImportedEntityArray ImportedEntities, DIMacroNodeArray Macros,
1174
1174
uint64_t DWOId, bool SplitDebugInlining, bool DebugInfoForProfiling,
1175
- unsigned NameTableKind, bool RangesBaseAddress, StringRef SysRoot ,
1176
- StorageType Storage, bool ShouldCreate = true ) {
1177
- return getImpl (
1178
- Context, SourceLanguage, File, getCanonicalMDString (Context, Producer),
1179
- IsOptimized, getCanonicalMDString (Context, Flags), RuntimeVersion,
1180
- getCanonicalMDString (Context, SplitDebugFilename), EmissionKind ,
1181
- EnumTypes. get (), RetainedTypes .get (), GlobalVariables .get (),
1182
- ImportedEntities .get (), Macros .get (), DWOId, SplitDebugInlining ,
1183
- DebugInfoForProfiling, NameTableKind, RangesBaseAddress ,
1184
- getCanonicalMDString (Context, SysRoot) , Storage, ShouldCreate);
1175
+ unsigned NameTableKind, bool RangesBaseAddress, StorageType Storage ,
1176
+ bool ShouldCreate = true ) {
1177
+ return getImpl (Context, SourceLanguage, File,
1178
+ getCanonicalMDString (Context, Producer), IsOptimized ,
1179
+ getCanonicalMDString (Context, Flags), RuntimeVersion,
1180
+ getCanonicalMDString (Context, SplitDebugFilename),
1181
+ EmissionKind, EnumTypes .get (), RetainedTypes .get (),
1182
+ GlobalVariables .get (), ImportedEntities .get (), Macros. get () ,
1183
+ DWOId, SplitDebugInlining, DebugInfoForProfiling ,
1184
+ NameTableKind, RangesBaseAddress , Storage, ShouldCreate);
1185
1185
}
1186
1186
static DICompileUnit *
1187
1187
getImpl (LLVMContext &Context, unsigned SourceLanguage, Metadata *File,
@@ -1191,8 +1191,7 @@ class DICompileUnit : public DIScope {
1191
1191
Metadata *GlobalVariables, Metadata *ImportedEntities,
1192
1192
Metadata *Macros, uint64_t DWOId, bool SplitDebugInlining,
1193
1193
bool DebugInfoForProfiling, unsigned NameTableKind,
1194
- bool RangesBaseAddress, MDString *SysRoot, StorageType Storage,
1195
- bool ShouldCreate = true );
1194
+ bool RangesBaseAddress, StorageType Storage, bool ShouldCreate = true );
1196
1195
1197
1196
TempDICompileUnit cloneImpl () const {
1198
1197
return getTemporary (
@@ -1201,7 +1200,7 @@ class DICompileUnit : public DIScope {
1201
1200
getEmissionKind (), getEnumTypes (), getRetainedTypes (),
1202
1201
getGlobalVariables (), getImportedEntities (), getMacros (), DWOId,
1203
1202
getSplitDebugInlining (), getDebugInfoForProfiling (), getNameTableKind (),
1204
- getRangesBaseAddress (), getSysRoot () );
1203
+ getRangesBaseAddress ());
1205
1204
}
1206
1205
1207
1206
public:
@@ -1217,13 +1216,11 @@ class DICompileUnit : public DIScope {
1217
1216
DIGlobalVariableExpressionArray GlobalVariables,
1218
1217
DIImportedEntityArray ImportedEntities, DIMacroNodeArray Macros,
1219
1218
uint64_t DWOId, bool SplitDebugInlining, bool DebugInfoForProfiling,
1220
- DebugNameTableKind NameTableKind, bool RangesBaseAddress,
1221
- StringRef SysRoot),
1219
+ DebugNameTableKind NameTableKind, bool RangesBaseAddress),
1222
1220
(SourceLanguage, File, Producer, IsOptimized, Flags, RuntimeVersion,
1223
1221
SplitDebugFilename, EmissionKind, EnumTypes, RetainedTypes,
1224
1222
GlobalVariables, ImportedEntities, Macros, DWOId, SplitDebugInlining,
1225
- DebugInfoForProfiling, (unsigned )NameTableKind, RangesBaseAddress,
1226
- SysRoot))
1223
+ DebugInfoForProfiling, (unsigned )NameTableKind, RangesBaseAddress))
1227
1224
DEFINE_MDNODE_GET_DISTINCT_TEMPORARY(
1228
1225
DICompileUnit,
1229
1226
(unsigned SourceLanguage, Metadata *File, MDString *Producer,
@@ -1232,11 +1229,11 @@ class DICompileUnit : public DIScope {
1232
1229
Metadata *RetainedTypes, Metadata *GlobalVariables,
1233
1230
Metadata *ImportedEntities, Metadata *Macros, uint64_t DWOId,
1234
1231
bool SplitDebugInlining, bool DebugInfoForProfiling,
1235
- unsigned NameTableKind, bool RangesBaseAddress, MDString *SysRoot ),
1232
+ unsigned NameTableKind, bool RangesBaseAddress),
1236
1233
(SourceLanguage, File, Producer, IsOptimized, Flags, RuntimeVersion,
1237
1234
SplitDebugFilename, EmissionKind, EnumTypes, RetainedTypes,
1238
1235
GlobalVariables, ImportedEntities, Macros, DWOId, SplitDebugInlining,
1239
- DebugInfoForProfiling, NameTableKind, RangesBaseAddress, SysRoot ))
1236
+ DebugInfoForProfiling, NameTableKind, RangesBaseAddress))
1240
1237
1241
1238
TempDICompileUnit clone() const { return cloneImpl (); }
1242
1239
@@ -1253,10 +1250,14 @@ class DICompileUnit : public DIScope {
1253
1250
DebugNameTableKind getNameTableKind () const {
1254
1251
return (DebugNameTableKind)NameTableKind;
1255
1252
}
1256
- bool getRangesBaseAddress () const { return RangesBaseAddress; }
1257
- StringRef getProducer () const { return getStringOperand (1 ); }
1258
- StringRef getFlags () const { return getStringOperand (2 ); }
1259
- StringRef getSplitDebugFilename () const { return getStringOperand (3 ); }
1253
+ bool getRangesBaseAddress () const {
1254
+ return RangesBaseAddress; }
1255
+ StringRef getProducer () const {
1256
+ return getStringOperand (1 ); }
1257
+ StringRef getFlags () const {
1258
+ return getStringOperand (2 ); }
1259
+ StringRef getSplitDebugFilename () const {
1260
+ return getStringOperand (3 ); }
1260
1261
DICompositeTypeArray getEnumTypes () const {
1261
1262
return cast_or_null<MDTuple>(getRawEnumTypes ());
1262
1263
}
@@ -1278,7 +1279,6 @@ class DICompileUnit : public DIScope {
1278
1279
void setSplitDebugInlining (bool SplitDebugInlining) {
1279
1280
this ->SplitDebugInlining = SplitDebugInlining;
1280
1281
}
1281
- StringRef getSysRoot () const { return getStringOperand (9 ); }
1282
1282
1283
1283
MDString *getRawProducer () const { return getOperandAs<MDString>(1 ); }
1284
1284
MDString *getRawFlags () const { return getOperandAs<MDString>(2 ); }
@@ -1290,7 +1290,6 @@ class DICompileUnit : public DIScope {
1290
1290
Metadata *getRawGlobalVariables () const { return getOperand (6 ); }
1291
1291
Metadata *getRawImportedEntities () const { return getOperand (7 ); }
1292
1292
Metadata *getRawMacros () const { return getOperand (8 ); }
1293
- MDString *getRawSysRoot () const { return getOperandAs<MDString>(9 ); }
1294
1293
1295
1294
// / Replace arrays.
1296
1295
// /
@@ -2083,45 +2082,50 @@ class DIModule : public DIScope {
2083
2082
: DIScope(Context, DIModuleKind, Storage, dwarf::DW_TAG_module, Ops) {}
2084
2083
~DIModule () = default ;
2085
2084
2086
- static DIModule *getImpl (LLVMContext &Context, DIScope *Scope, StringRef Name,
2087
- StringRef ConfigurationMacros, StringRef IncludePath,
2085
+ static DIModule *getImpl (LLVMContext &Context, DIScope *Scope,
2086
+ StringRef Name, StringRef ConfigurationMacros,
2087
+ StringRef IncludePath, StringRef SysRoot,
2088
2088
StorageType Storage, bool ShouldCreate = true ) {
2089
2089
return getImpl (Context, Scope, getCanonicalMDString (Context, Name),
2090
2090
getCanonicalMDString (Context, ConfigurationMacros),
2091
2091
getCanonicalMDString (Context, IncludePath),
2092
+ getCanonicalMDString (Context, SysRoot),
2092
2093
Storage, ShouldCreate);
2093
2094
}
2094
2095
static DIModule *getImpl (LLVMContext &Context, Metadata *Scope,
2095
2096
MDString *Name, MDString *ConfigurationMacros,
2096
- MDString *IncludePath, StorageType Storage ,
2097
- bool ShouldCreate = true );
2097
+ MDString *IncludePath, MDString *SysRoot ,
2098
+ StorageType Storage, bool ShouldCreate = true );
2098
2099
2099
2100
TempDIModule cloneImpl () const {
2100
2101
return getTemporary (getContext (), getScope (), getName (),
2101
- getConfigurationMacros (), getIncludePath ());
2102
+ getConfigurationMacros (), getIncludePath (),
2103
+ getSysRoot ());
2102
2104
}
2103
2105
2104
2106
public:
2105
- DEFINE_MDNODE_GET (DIModule,
2106
- (DIScope * Scope , StringRef Name ,
2107
- StringRef ConfigurationMacros, StringRef IncludePath ),
2108
- (Scope, Name, ConfigurationMacros, IncludePath))
2107
+ DEFINE_MDNODE_GET (DIModule, (DIScope *Scope, StringRef Name,
2108
+ StringRef ConfigurationMacros , StringRef IncludePath ,
2109
+ StringRef SysRoot ),
2110
+ (Scope, Name, ConfigurationMacros, IncludePath, SysRoot ))
2109
2111
DEFINE_MDNODE_GET (DIModule,
2110
2112
(Metadata *Scope, MDString *Name, MDString *ConfigurationMacros,
2111
- MDString *IncludePath),
2112
- (Scope, Name, ConfigurationMacros, IncludePath))
2113
+ MDString *IncludePath, MDString *SysRoot ),
2114
+ (Scope, Name, ConfigurationMacros, IncludePath, SysRoot ))
2113
2115
2114
2116
TempDIModule clone () const { return cloneImpl (); }
2115
2117
2116
2118
DIScope *getScope () const { return cast_or_null<DIScope>(getRawScope ()); }
2117
2119
StringRef getName () const { return getStringOperand (1 ); }
2118
2120
StringRef getConfigurationMacros () const { return getStringOperand (2 ); }
2119
2121
StringRef getIncludePath () const { return getStringOperand (3 ); }
2122
+ StringRef getSysRoot () const { return getStringOperand (4 ); }
2120
2123
2121
2124
Metadata *getRawScope () const { return getOperand (0 ); }
2122
2125
MDString *getRawName () const { return getOperandAs<MDString>(1 ); }
2123
2126
MDString *getRawConfigurationMacros () const { return getOperandAs<MDString>(2 ); }
2124
2127
MDString *getRawIncludePath () const { return getOperandAs<MDString>(3 ); }
2128
+ MDString *getRawSysRoot () const { return getOperandAs<MDString>(4 ); }
2125
2129
2126
2130
static bool classof (const Metadata *MD) {
2127
2131
return MD->getMetadataID () == DIModuleKind;
0 commit comments