diff options
author | Erik Pilkington <erik.pilkington@gmail.com> | 2018-02-02 18:04:32 +0000 |
---|---|---|
committer | Erik Pilkington <erik.pilkington@gmail.com> | 2018-02-02 18:04:32 +0000 |
commit | 4f052d075c0e074e34756dd8565e53ffd1c9929e (patch) | |
tree | 8abe0516fad3ac03d8309383994c4a23e0f15f76 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 3838ed0370c6601417295dcda5f0713b11acc0c0 (diff) | |
download | llvm-4f052d075c0e074e34756dd8565e53ffd1c9929e.zip llvm-4f052d075c0e074e34756dd8565e53ffd1c9929e.tar.gz llvm-4f052d075c0e074e34756dd8565e53ffd1c9929e.tar.bz2 |
[demangler] Clean up the expression parser
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
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions