Changeset 6e7ed0aa for src/CodeGen
- Timestamp:
- Oct 31, 2023, 3:55:01 PM (18 months ago)
- Branches:
- master
- Children:
- fa761c2
- Parents:
- a137d5a
- Location:
- src/CodeGen
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/CodeGen/CodeGenerator.cc ¶
ra137d5a r6e7ed0aa 1247 1247 } 1248 1248 1249 std::string genName( ast::DeclWithType const * decl ) {1250 if ( const OperatorInfo * opInfo = operatorLookup( decl->name ) ) {1251 return opInfo->outputName;1252 } else {1253 return decl->name;1254 }1255 }1256 1257 1249 } // namespace CodeGen 1258 1250 -
TabularUnified src/CodeGen/CodeGenerator.h ¶
ra137d5a r6e7ed0aa 186 186 /// returns C-compatible name of declaration 187 187 std::string genName( DeclarationWithType * decl ); 188 std::string genName( ast::DeclWithType const * decl );189 188 190 189 inline std::ostream & operator<<( std::ostream & os, const CodeGenerator::LineEnder & endl ) { -
TabularUnified src/CodeGen/CodeGeneratorNew.cpp ¶
ra137d5a r6e7ed0aa 1247 1247 } 1248 1248 1249 //std::string genName( ast::DeclWithType const * decl ) {} 1249 std::string genName( ast::DeclWithType const * decl ) { 1250 if ( const OperatorInfo * opInfo = operatorLookup( decl->name ) ) { 1251 return opInfo->outputName; 1252 } else { 1253 return decl->name; 1254 } 1255 } 1250 1256 1251 1257 } // namespace CodeGen -
TabularUnified src/CodeGen/CodeGeneratorNew.hpp ¶
ra137d5a r6e7ed0aa 188 188 } 189 189 190 /// Returns the C-compatible name of the declaration. 191 std::string genName( ast::DeclWithType const * decl ); 192 190 193 } // namespace CodeGen
Note: See TracChangeset
for help on using the changeset viewer.