Changeset 6e7ed0aa
- Timestamp:
- Oct 31, 2023, 3:55:01 PM (14 months ago)
- Branches:
- master
- Children:
- fa761c2
- Parents:
- a137d5a
- Location:
- src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
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 -
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 ) { -
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 -
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 -
src/Validate/FixReturnTypes.cpp
ra137d5a r6e7ed0aa 19 19 #include "AST/Pass.hpp" 20 20 #include "AST/Type.hpp" 21 #include "CodeGen/CodeGenerator .h"21 #include "CodeGen/CodeGeneratorNew.hpp" 22 22 #include "ResolvExpr/Unify.h" 23 23
Note: See TracChangeset
for help on using the changeset viewer.