diff options
author | Devang Patel <dpatel@apple.com> | 2007-11-30 00:51:33 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-11-30 00:51:33 +0000 |
commit | 962e0750a545ccced983386c859e436d9afddd79 (patch) | |
tree | fb2352952992b87d402aee3d1e60a54428d32007 /lib/CodeGen/MachineModuleInfo.cpp | |
parent | cb3c330d39442130d0587208d673ce9c33c7008f (diff) |
Provide a way to update DescGlobals cache directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r-- | lib/CodeGen/MachineModuleInfo.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineModuleInfo.cpp b/lib/CodeGen/MachineModuleInfo.cpp index 8360745ff1..9943fa9967 100644 --- a/lib/CodeGen/MachineModuleInfo.cpp +++ b/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 |