Go to file
Zachary Turner 23df1319ca [MS Demangler] Properly handle function parameter back-refs.
Properly demangle function parameter back-references.

Previously we treated lists of function parameters and template
parameters the same. There are some important differences with regards
to back-references, and some less important differences regarding which
characters can appear before or after the name.

The important differences are that with a given type T, all instances of
a function parameter list share the same global back-ref table.
Specifically, if X and Y are function pointers, then there are 3
entities in the declaration X func(Y) which all affect and are affected
by the master parameter back-ref table:
  1) The parameter list of X's function type
  2) the parameter list of func itself
  3) The parameter list of Y's function type.

The previous code would create a back-reference table that was local to
a single parameter list, so it would not be shared across parameter
lists.

This was discovered when porting ms-back-references.test from clang's
mangling tests. All of these tests should now pass with the new changes.

In doing so, I split the function for parsing template and function
parameters into two separate functions. This makes the template
parameter list parsing code in particular very small and easy to
understand now.

Differential Revision: https://reviews.llvm.org/D49875

llvm-svn: 338075
2018-07-26 22:13:39 +00:00
clang [VirtualFileSystem] InMemoryFileSystem::status: Return a Status with the requested name 2018-07-26 18:55:02 +00:00
clang-tools-extra Revert Clangd Dex Iterators patch 2018-07-26 18:25:48 +00:00
compiler-rt [test] Use printf instead of C++ iostream, NFC. 2018-07-26 18:23:40 +00:00
debuginfo-tests [DebugInfo] LowerDbgDeclare: Add derefs when handling CallInst users 2018-07-26 20:56:53 +00:00
libclc atom: Use volatile pointers for cl_khr_{global,local}_int32_{base,extended}_atomics 2018-06-21 19:27:39 +00:00
libcxx [CMake] Don't generate linker script only when shared library isn't statically linked 2018-07-26 05:10:24 +00:00
libcxxabi [CMake] Don't use LIBCXXABI_ENABLE_STATIC option before its declared 2018-07-25 23:13:00 +00:00
libunwind [CMake] Include CMakeDependentOption in libunwind 2018-07-24 23:42:51 +00:00
lld [COFF] Handle comdat sections without leader symbols 2018-07-26 20:14:50 +00:00
lldb Add back lldb-framework-headers target 2018-07-26 21:55:14 +00:00
llgo Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
llvm [MS Demangler] Properly handle function parameter back-refs. 2018-07-26 22:13:39 +00:00
openmp PR30734: Remove __kmp_ft_page_allocate() 2018-07-26 18:15:02 +00:00
parallel-libs Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
polly [isl] Simplify iterator implementation by building on top of list accessors 2018-07-23 15:28:50 +00:00
README.md

README.md

Low Level Virtual Machine (LLVM)

This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments.