Add a finalize() hook, that'll let DIBuilder construct compile unit lazily.
[oota-llvm.git] / include / llvm / Analysis / DIBuilder.h
index a706cc8f35db1d709e450764492aee4c97c446f2..0f6fd503384101c5e5f33c33ae5e7d9c87a669d1 100644 (file)
@@ -59,6 +59,9 @@ namespace llvm {
     const MDNode *getCU() { return TheCU; }
     enum ComplexAddrKind { OpPlus=1, OpDeref };
 
+    /// finalize - Construct any deferred debug info descriptors.
+    void finalize();
+
     /// createCompileUnit - A CompileUnit provides an anchor for all debugging
     /// information generated during this instance of compilation.
     /// @param Lang     Source programming language, eg. dwarf::DW_LANG_C99