Changes in src/Common/Debug.h [85b2300:25ba999]
- File:
-
- 1 edited
-
src/Common/Debug.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Common/Debug.h
r85b2300 r25ba999 28 28 namespace Debug { 29 29 /// debug codegen a translation unit 30 static inline void codeGen( __attribute__((unused)) const std::list< Declaration * > & translationUnit, __attribute__((unused)) const std::string & label , __attribute__((unused)) LinkageSpec::Spec linkageFilter = LinkageSpec::Builtin) {30 static inline void codeGen( __attribute__((unused)) const std::list< Declaration * > & translationUnit, __attribute__((unused)) const std::string & label ) { 31 31 #ifdef DEBUG 32 32 std::list< Declaration * > decls; 33 33 34 filter( translationUnit.begin(), translationUnit.end(), back_inserter( decls ), [ linkageFilter]( Declaration * decl ) {35 return ! (decl->linkage & linkageFilter);34 filter( translationUnit.begin(), translationUnit.end(), back_inserter( decls ), []( Declaration * decl ) { 35 return ! LinkageSpec::isBuiltin( decl->get_linkage() ); 36 36 }); 37 37 38 38 std::cerr << "======" << label << "======" << std::endl; 39 CodeGen::generate( 40 decls, 41 std::cerr, 42 true /* doIntrinsics */, 43 true /* pretty */, 44 false /* generateC */, 45 false /* lineMarks */, 46 true /* printTypeExpr */ 47 ); 39 CodeGen::generate( decls, std::cerr, false, true ); 48 40 #endif 49 41 } // dump 50 42 51 static inline void treeDump( __attribute__((unused)) const std::list< Declaration * > & translationUnit, __attribute__((unused)) const std::string & label , __attribute__((unused)) LinkageSpec::Spec linkageFilter = LinkageSpec::Compiler) {43 static inline void treeDump( __attribute__((unused)) const std::list< Declaration * > & translationUnit, __attribute__((unused)) const std::string & label ) { 52 44 #ifdef DEBUG 53 45 std::list< Declaration * > decls; 54 46 55 filter( translationUnit.begin(), translationUnit.end(), back_inserter( decls ), [ linkageFilter]( Declaration * decl ) {56 return ! (decl->linkage & linkageFilter);47 filter( translationUnit.begin(), translationUnit.end(), back_inserter( decls ), []( Declaration * decl ) { 48 return ! LinkageSpec::isBuiltin( decl->get_linkage() ); 57 49 }); 58 50
Note:
See TracChangeset
for help on using the changeset viewer.