From 1a7ca0354a44e321d5f4839a73239e6eaec54ad5 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 28 Sep 2010 18:08:20 +0000 Subject: Provide an interface to let FEs anchor debug info for types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114969 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/DebugInfo.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/llvm/Analysis/DebugInfo.h') diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h index d5733aeb75..1b544e5c14 100644 --- a/include/llvm/Analysis/DebugInfo.h +++ b/include/llvm/Analysis/DebugInfo.h @@ -763,6 +763,11 @@ namespace llvm { /// InsertDbgValueIntrinsic - Insert a new llvm.dbg.value intrinsic call. Instruction *InsertDbgValueIntrinsic(llvm::Value *V, uint64_t Offset, DIVariable D, Instruction *InsertBefore); + + // RecordType - Record DIType in a module such that it is not lost even if + // it is not referenced through debug info anchors. + void RecordType(DIType T); + private: Constant *GetTagConstant(unsigned TAG); }; -- cgit v1.2.3