[phobos] [dlang/tools] 7df30c: Also match D symbols that have an extra leading un...
GitHub via phobos
phobos at puremagic.com
Mon Jun 6 10:35:50 PDT 2016
Branch: refs/heads/master
Home: https://github.com/dlang/tools
Commit: 7df30cbbb86804e535160faf20ecddcb7bdab28a
https://github.com/dlang/tools/commit/7df30cbbb86804e535160faf20ecddcb7bdab28a
Author: Johan Engelen <jbc.engelen at gmail.com>
Date: 2016-05-29 (Sun, 29 May 2016)
Changed paths:
M ddemangle.d
Log Message:
-----------
Also match D symbols that have an extra leading underscore.
On some architectures, symbols have an extra underscore prepended (e.g. OS X), and e.g. C++ symbols look like: `__ZZN4llvm14MCObjectWriter10WriteZerosEjE5Zeros`.
DMD does not prepend the extra `_` for D symbols: `_D6object9Throwable8toStringMFZAya` and ddemangle works fine.
LDC does prepend the extra `_`: `__D6object9Throwable8toStringMFZAya` and ddemangle does not demangle the symbol.
c++filt has the option `--strip-underscore Ignore first leading underscore (default)` for this issue.
I could not come up with a case where it would do harm so instead of adding such a commandline switch, this commit makes ddemangle recognize both `_D...` and `__D...` during the same execution run.
Commit: e32fe5dc816a35a3a6ee4546e8107b4ae3102792
https://github.com/dlang/tools/commit/e32fe5dc816a35a3a6ee4546e8107b4ae3102792
Author: David Nadlinger <code at klickverbot.at>
Date: 2016-06-06 (Mon, 06 Jun 2016)
Changed paths:
M ddemangle.d
Log Message:
-----------
Merge pull request #188 from JohanEngelen/underscore
Also match D symbols that have an extra leading underscore.
Compare: https://github.com/dlang/tools/compare/dea3c3698ffa...e32fe5dc816a
More information about the phobos
mailing list