Skip to content

Commit

Permalink
[Clang][TableGen] Change ClangAttrEmitter to use const Record * (#110584
Browse files Browse the repository at this point in the history
  • Loading branch information
jurahul authored Oct 1, 2024
1 parent a86e966 commit 017c2ab
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 68 deletions.
4 changes: 2 additions & 2 deletions clang/utils/TableGen/ASTTableGen.h
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ class PropertyType : public WrappedRecord {
return get()->getValueAsString(UnpackOptionalCodeFieldName);
}

std::vector<llvm::Record*> getBufferElementTypes() const {
return get()->getValueAsListOfDefs(BufferElementTypesFieldName);
std::vector<const llvm::Record *> getBufferElementTypes() const {
return get()->getValueAsListOfConstDefs(BufferElementTypesFieldName);
}

static llvm::StringRef getTableGenNodeClassName() {
Expand Down
Loading

0 comments on commit 017c2ab

Please sign in to comment.