Debug Info: Move isSubprogramContext from DebugInfo to DwarfDebug.
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfDebug.h
index 5ccaf0fa484960d890188099f1d7d4993617bb71..f8c27d950ecc828d4c5e4aa93e470e99933a3c3b 100644 (file)
@@ -686,6 +686,10 @@ public:
   /// Find the MDNode for the given scope reference.
   DIScope resolve(DIScopeRef SRef) const;
 
+  /// isSubprogramContext - Return true if Context is either a subprogram
+  /// or another context nested inside a subprogram.
+  bool isSubprogramContext(const MDNode *Context);
+
 };
 } // End of namespace llvm