Skip to content

Commit

Permalink
[demangler] Clean up the expression parser
Browse files Browse the repository at this point in the history
This commit cleans up the expression parser, using a new style:
  - parse* functions now return Node pointers.
  - The mangled name is now held in Db and accessed with look() and consume()
  - LLVM coding style

This style is meant to avoid the 2 most common types of bugs in the
old demanger, namely misusing the Names stack (ie, calling back() on
empty) and going out of bounds on the mangled name. I also think it
makes the demangler a lot cleaner.

Differential revision: https://reviews.llvm.org/D41887

llvm-svn: 324111
  • Loading branch information
epilk committed Feb 2, 2018
1 parent 3838ed0 commit 4f052d0
Show file tree
Hide file tree
Showing 2 changed files with 1,206 additions and 1,735 deletions.
Loading

0 comments on commit 4f052d0

Please sign in to comment.