Revert "[CGDebugInfo] Simplify EmitFunctionDecl parameters, NFC"
This reverts commit 1af41074445229fea66b99710a850e5f42ecfa95.
llvm-svn: 365814
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h
index ca713fc..7edbea8 100644
--- a/clang/lib/CodeGen/CGDebugInfo.h
+++ b/clang/lib/CodeGen/CGDebugInfo.h
@@ -408,11 +408,10 @@
/// End an inlined function scope.
void EmitInlineFunctionEnd(CGBuilderTy &Builder);
- /// Emit debug info for a function declaration. Set \p IsDeclForCallSite if
- /// a call site entry must reference the declaration.
- llvm::DISubprogram *EmitFunctionDecl(GlobalDecl GD, SourceLocation Loc,
- QualType FnType,
- bool IsDeclForCallSite = false);
+ /// Emit debug info for a function declaration.
+ /// \p Fn is set only when a declaration for a debug call site gets created.
+ void EmitFunctionDecl(GlobalDecl GD, SourceLocation Loc,
+ QualType FnType, llvm::Function *Fn = nullptr);
/// Emit debug info for an extern function being called.
/// This is needed for call site debug info.