Branch: refs/heads/master
  Home:   https://github.com/dlang/tools
  Commit: 7df30cbbb86804e535160faf20ecddcb7bdab28a
      
https://github.com/dlang/tools/commit/7df30cbbb86804e535160faf20ecddcb7bdab28a
  Author: Johan Engelen <[email protected]>
  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 <[email protected]>
  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
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos

Reply via email to