aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter/DwarfDebug.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-12-11 21:37:07 +0000
committerDevang Patel <dpatel@apple.com>2009-12-11 21:37:07 +0000
commitd037d7a497caa4d66008723de72fb554ca0ae630 (patch)
tree80ad34667118118e204296ae6f129b3440a546c3 /lib/CodeGen/AsmPrinter/DwarfDebug.h
parent87862e77bbf90cf1b68c9eea1f3641ad81435e38 (diff)
downloadexternal_llvm-d037d7a497caa4d66008723de72fb554ca0ae630.tar.gz
external_llvm-d037d7a497caa4d66008723de72fb554ca0ae630.tar.bz2
external_llvm-d037d7a497caa4d66008723de72fb554ca0ae630.zip
Construct CompileUnits lazily.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91159 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.h b/lib/CodeGen/AsmPrinter/DwarfDebug.h
index 38bfaf6fe9..0e0064feb9 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.h
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.h
@@ -364,7 +364,7 @@ class DwarfDebug : public Dwarf {
/// findCompileUnit - Get the compile unit for the given descriptor.
///
- CompileUnit &findCompileUnit(DICompileUnit Unit) const;
+ CompileUnit *findCompileUnit(DICompileUnit Unit);
/// getUpdatedDbgScope - Find or create DbgScope assicated with
/// the instruction. Initialize scope and update scope hierarchy.
@@ -495,7 +495,7 @@ class DwarfDebug : public Dwarf {
/// as well.
unsigned GetOrCreateSourceID(StringRef DirName, StringRef FileName);
- void constructCompileUnit(MDNode *N);
+ CompileUnit *constructCompileUnit(MDNode *N);
void constructGlobalVariableDIE(MDNode *N);