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

Frederic Riss friss at apple.com
Fri Sep 12 00:49:07 PDT 2014


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5325.13616.patch
Type: text/x-patch
Size: 1816 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140912/2562bb15/attachment.bin>


More information about the llvm-commits mailing list