llvm-project/llvm
Amy Huang 2b8c6acc39 Reland "[codeview] Reference types in type parent scopes"
Summary:
Original description (https://reviews.llvm/org/D69924)
Without this change, when a nested tag type of any kind (enum, class,
struct, union) is used as a variable type, it is emitted without
emitting the parent type. In CodeView, parent types point to their inner
types, and inner types do not point back to their parents. We already
walk over all of the parent scopes to build the fully qualified name.
This change simply requests their type indices as we go along to enusre
they are all emitted.

Now, while walking over the parent scopes, add the types to
DeferredCompleteTypes, since they might already be in the process of
being emitted.

Fixes PR43905

Reviewers: rnk, amccarth

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78249
2020-04-16 12:08:52 -07:00
..
benchmarks
bindings
cmake [clangd] Pull installed gRPC and introduce clangd-remote-(server|client) 2020-04-16 13:55:08 +02:00
docs [docs] Fix an RST error introduced in e823068306. 2020-04-15 14:37:58 -07:00
examples Enable new passmanager plugin support for LTO. 2020-04-14 15:07:07 -07:00
include [CallSite removal][CodeGen] Drop some unneeded includes of CallSite.h. NFC 2020-04-16 11:05:35 -07:00
lib Reland "[codeview] Reference types in type parent scopes" 2020-04-16 12:08:52 -07:00
projects
resources
runtimes
test Reland "[codeview] Reference types in type parent scopes" 2020-04-16 12:08:52 -07:00
tools [llvm][NFC][CallSite] Removed CallSite from some implementation details. 2020-04-15 22:27:05 -07:00
unittests [globalisel] Add lost debug locations verifier 2020-04-16 10:43:35 -07:00
utils [gn build] Port d9085f65db 2020-04-16 17:47:41 +00:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt [Flang] add flang as a new subproject in cmake 2020-04-09 16:13:18 +01:00
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

The LLVM Compiler Infrastructure
================================

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

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.