Skip to content

Commit 4fc84d3

Browse files
authored
Remove the unused doc field in the compiler (#27788)
Removes the unused `doc` field, which is leftover from when `chpldoc` was a compiler pass instead of a standalone tool. - [x] paratest [Reviewed by @DanilaFe]
2 parents efaa891 + 99e18fa commit 4fc84d3

File tree

8 files changed

+1
-12
lines changed

8 files changed

+1
-12
lines changed

compiler/AST/AggregateType.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ AggregateType::AggregateType(AggregateTag initTag) :
5656
initializerResolved = false;
5757
iteratorInfo = NULL;
5858
thunkInvoke = NULL;
59-
doc = NULL;
6059

6160
instantiatedFrom = NULL;
6261

compiler/AST/FnSymbol.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ FnSymbol::FnSymbol(const char* initName)
6969
userString = NULL;
7070
valueFunction = NULL;
7171
codegenUniqueNum = 1;
72-
doc = NULL;
7372
retSymbol = NULL;
7473
llvmDISubprogram = NULL;
7574
mIsNormalized = false;

compiler/AST/type.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,7 @@ bool isConstrainedTypeSymbol(Symbol* s, ConstrainedTypeUse use) {
536536

537537
EnumType::EnumType() :
538538
Type(E_EnumType, NULL),
539-
constants(), integerType(NULL),
540-
doc(NULL)
539+
constants(), integerType(NULL)
541540
{
542541
gEnumTypes.add(this);
543542
constants.parent = this;

compiler/include/AggregateType.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,6 @@ class AggregateType final : public Type {
215215
// What to delegate to with 'forwarding'
216216
AList forwardingTo;
217217

218-
const char* doc;
219-
220218
// Used during code generation for subclass checking,
221219
// isa checking. This is the value we store in chpl__cid_XYZ.
222220
int classId;

compiler/include/FnSymbol.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ class FnSymbol final : public Symbol {
142142
FnSymbol* valueFunction;
143143

144144
int codegenUniqueNum;
145-
const char* doc;
146145

147146
// Used to store the return symbol during partial copying.
148147
Symbol* retSymbol;

compiler/include/ModuleSymbol.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ class ModuleSymbol final : public Symbol {
9898
std::vector<ModuleSymbol*> modUseList;
9999

100100
const char* filename;
101-
const char* doc;
102101

103102
#ifdef HAVE_LLVM
104103
ExternBlockInfo* extern_info;

compiler/include/symbol.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,6 @@ class TypeSymbol final : public Symbol {
529529
// TBAA metadata for aggregates
530530
void codegenAggMetadata();
531531

532-
const char* doc;
533-
534532
BlockStmt* instantiationPoint;
535533
astlocT userInstantiationPointLoc;
536534
};

compiler/include/type.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,6 @@ class EnumType final : public Type {
338338
PrimitiveType* integerType;
339339

340340
public:
341-
const char* doc;
342-
343341
EnumType();
344342
~EnumType() override = default;
345343

0 commit comments

Comments
 (0)