From cc45c338d1af25cba7bf28d53c5db16b58a6a35d Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Fri, 30 Nov 2007 00:51:33 +0000 Subject: Provide a way to update DescGlobals cache directly. llvm-svn: 44446 --- llvm/lib/CodeGen/MachineModuleInfo.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp') diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp index 8360745ff16..9943fa99676 100644 --- a/llvm/lib/CodeGen/MachineModuleInfo.cpp +++ b/llvm/lib/CodeGen/MachineModuleInfo.cpp @@ -1364,6 +1364,12 @@ GlobalVariable *DISerializer::Serialize(DebugInfoDesc *DD) { return GV; } +/// addDescriptor - Directly connect DD with existing GV. +void DISerializer::addDescriptor(DebugInfoDesc *DD, + GlobalVariable *GV) { + DescGlobals[DD] = GV; +} + //===----------------------------------------------------------------------===// /// Verify - Return true if the GlobalVariable appears to be a valid -- cgit v1.2.3