diff options
author | Devang Patel <dpatel@apple.com> | 2009-07-22 18:23:44 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-07-22 18:23:44 +0000 |
commit | a19b46407877bed9ac352293efee0e5db6901d81 (patch) | |
tree | b6d3252bb52bd58b8c9d79700c248df1f2e420fc /include/llvm | |
parent | 5f5b4f816cfc6c029d2916e0e347342e1c01c6e3 (diff) | |
download | external_llvm-a19b46407877bed9ac352293efee0e5db6901d81.zip external_llvm-a19b46407877bed9ac352293efee0e5db6901d81.tar.gz external_llvm-a19b46407877bed9ac352293efee0e5db6901d81.tar.bz2 |
Add replaceAllUsesWith() to FE replace debug info constructs while building complex types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76765 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Analysis/DebugInfo.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h index 91046c2..39fe01d 100644 --- a/include/llvm/Analysis/DebugInfo.h +++ b/include/llvm/Analysis/DebugInfo.h @@ -253,6 +253,11 @@ namespace llvm { uint64_t getOriginalTypeSize() const; /// dump - print derived type. void dump() const; + + /// replaceAllUsesWith - Replace all uses of debug info referenced by + /// this descriptor. After this completes, the current debug info value + /// is erased. + void replaceAllUsesWith(DIDescriptor &D); }; /// DICompositeType - This descriptor holds a type that can refer to multiple |