[DWARF] Fix debug info generation for function static variables, typedefs, and records
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfUnit.h
index 4000ae48a8563e4091f7f465603d030a5347664c..3f4809974f37d38b6f2da1d1bbfad032d12a15df 100644 (file)
@@ -298,7 +298,9 @@ public:
                                  bool Minimal = false);
 
   /// \brief Find existing DIE or create new DIE for the given type.
-  DIE *getOrCreateTypeDIE(const MDNode *N);
+  /// \param N Type Node
+  /// \param ContextDIE DIE scope for N Node, if available.
+  DIE *getOrCreateTypeDIE(const MDNode *N, DIE *ContextDIE = nullptr);
 
   /// \brief Get context owner's DIE.
   DIE *createTypeDIE(const DICompositeType *Ty);