Changeset f980549 for src/CodeTools
- Timestamp:
- Sep 20, 2017, 12:24:45 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- b18830e
- Parents:
- 764e009 (diff), 47b5b63 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeTools/TrackLoc.cc
r764e009 rf980549 33 33 34 34 namespace CodeTools { 35 36 std::ostream & operator<<(std::ostream & out, CodeLocation const & loc) {37 return out << loc.filename << '[' << loc.linenumber << ']';38 }39 40 35 class LocationPrinter { 41 36 size_t printLevel; … … 69 64 } 70 65 else { 71 std::cerr << "Top level node has no CodeLocation " << name << std::endl; 72 exit(EXIT_FAILURE); 66 assertf( false, "Top level node has no CodeLocation %s", name.c_str() ); 73 67 } 74 68 } … … 95 89 acceptAll( translationUnit, printer ); 96 90 } 97 98 91 } // namespace CodeTools 99 92
Note:
See TracChangeset
for help on using the changeset viewer.