[PATCH] Move replaceAllUsesWith() from DIType to DIDescriptor.

Adrian Prantl aprantl at apple.com
Fri Sep 12 08:36:36 PDT 2014


Sounds reasonable. [+Duncan], as this will influence PR17891 & friends.

-- adrian

> On Sep 12, 2014, at 12:49 AM, Frederic Riss <friss at apple.com> wrote:
> 
> Hi echristo, dblaikie, aprantl,
> 
> RAUW was only used on DIType to merge declarations and full definitions
> of types. In order to support the same functionality for functions and
> global variables, move the function up type DI type hierarchy to the
> common parent of DIType, DISubprogram and DIVariable which is
> DIDescriptor.
> 
> This functionality will be exercized when we add the code to emit
> imported declarations for forward declared function/variables.
> 
> http://reviews.llvm.org/D5325
> 
> Files:
>  include/llvm/IR/DebugInfo.h
>  lib/IR/DebugInfo.cpp
> <D5325.13616.patch>




More information about the llvm-commits mailing list