llvm.org GIT mirror llvm / 4917541
Remove old DIBuilder::createFunction overload used only by dragonegg, which does not currently build NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266691 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Kleckner 4 years ago
2 changed file(s) with 0 addition(s) and 24 deletion(s). Raw diff Collapse all Expand all
523523 bool isOptimized = false, DITemplateParameterArray TParams = nullptr,
524524 DISubprogram *Decl = nullptr);
525525
526 /// FIXME: this is added for dragonegg. Once we update dragonegg
527 /// to call resolve function, this will be removed.
528 DISubprogram *createFunction(DIScopeRef Scope, StringRef Name,
529 StringRef LinkageName, DIFile *File,
530 unsigned LineNo, DISubroutineType *Ty,
531 bool isLocalToUnit, bool isDefinition,
532 unsigned ScopeLine, unsigned Flags = 0,
533 bool isOptimized = false,
534 DITemplateParameterArray TParams = nullptr,
535 DISubprogram *Decl = nullptr);
536
537526 /// Create a new descriptor for the specified C++ method.
538527 /// See comments in \a DISubprogram* for descriptions of these fields.
539528 /// \param Scope Function scope.
663663 return DIExpression::get(VMContext, Addr);
664664 }
665665
666 DISubprogram *DIBuilder::createFunction(
667 DIScopeRef Context, StringRef Name, StringRef LinkageName, DIFile *File,
668 unsigned LineNo, DISubroutineType *Ty, bool isLocalToUnit,
669 bool isDefinition, unsigned ScopeLine, unsigned Flags, bool isOptimized,
670 DITemplateParameterArray TParams, DISubprogram *Decl) {
671 // dragonegg does not generate identifier for types, so using an empty map
672 // to resolve the context should be fine.
673 DITypeIdentifierMap EmptyMap;
674 return createFunction(Context.resolve(EmptyMap), Name, LinkageName, File,
675 LineNo, Ty, isLocalToUnit, isDefinition, ScopeLine,
676 Flags, isOptimized, TParams, Decl);
677 }
678
679666 template
680667 static DISubprogram *getSubprogram(bool IsDistinct, Ts &&... Args) {
681668 if (IsDistinct)