[PATCH] D53538: NFC: Reorganize the demangler a bit

Erik Pilkington via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 22 16:44:58 PDT 2018


erik.pilkington created this revision.
erik.pilkington added reviewers: zturner, rsmith, labath.
Herald added subscribers: dexonsmith, christof, hiraditya.

With this patch, the copies of the files ItaniumDemangle.h, StringView.h, and Utility.h are kept byte-for-byte in sync between libcxxabi and llvm. All differences (namespaces, fallthrough, and unreachable macros) are defined in each copies' DemanglerConfig.h. This patch also adds a script to copy changes from libcxxabi (cp-to-llvm.sh), and a README.txt explaining the situation.

Thanks for taking a look!


https://reviews.llvm.org/D53538

Files:
  libcxxabi/src/cxa_demangle.cpp
  libcxxabi/src/demangle/Compiler.h
  libcxxabi/src/demangle/DemangleConfig.h
  libcxxabi/src/demangle/ItaniumDemangle.h
  libcxxabi/src/demangle/README.txt
  libcxxabi/src/demangle/StringView.h
  libcxxabi/src/demangle/Utility.h
  libcxxabi/src/demangle/cp-to-llvm.sh
  llvm/include/llvm/Demangle/Compiler.h
  llvm/include/llvm/Demangle/DemangleConfig.h
  llvm/include/llvm/Demangle/ItaniumDemangle.h
  llvm/include/llvm/Demangle/README.txt
  llvm/include/llvm/Demangle/StringView.h
  llvm/include/llvm/Demangle/Utility.h
  llvm/lib/Demangle/MicrosoftDemangle.cpp
  llvm/lib/Demangle/MicrosoftDemangleNodes.cpp
  llvm/lib/Demangle/MicrosoftDemangleNodes.h
  llvm/lib/Support/ItaniumManglingCanonicalizer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53538.170523.patch
Type: text/x-patch
Size: 28441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181022/97bca88a/attachment.bin>


More information about the llvm-commits mailing list