SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
32
lang/flang/driver/patches/patch-lib_CodeGen_CGDebugInfo_cpp
Normal file
32
lang/flang/driver/patches/patch-lib_CodeGen_CGDebugInfo_cpp
Normal file
|
@ -0,0 +1,32 @@
|
|||
Remove extra arguments found only in NVidia's forked LLVM.
|
||||
|
||||
Index: lib/CodeGen/CGDebugInfo.cpp
|
||||
--- lib/CodeGen/CGDebugInfo.cpp.orig
|
||||
+++ lib/CodeGen/CGDebugInfo.cpp
|
||||
@@ -3257,7 +3257,7 @@ CGDebugInfo::getGlobalVariableForwardDeclaration(const
|
||||
auto *GV = DBuilder.createTempGlobalVariableFwdDecl(
|
||||
DContext, Name, LinkageName, Unit, Line, getOrCreateType(T, Unit),
|
||||
!VD->isExternallyVisible(), nullptr, TemplateParameters,
|
||||
- llvm::DINode::FlagZero, Align);
|
||||
+ Align);
|
||||
FwdDeclReplaceMap.emplace_back(
|
||||
std::piecewise_construct,
|
||||
std::make_tuple(cast<VarDecl>(VD->getCanonicalDecl())),
|
||||
@@ -4207,7 +4207,7 @@ void CGDebugInfo::EmitGlobalVariable(llvm::GlobalVaria
|
||||
Var->hasLocalLinkage(),
|
||||
Expr.empty() ? nullptr : DBuilder.createExpression(Expr),
|
||||
getOrCreateStaticDataMemberDeclarationOrNull(D), TemplateParameters,
|
||||
- llvm::DINode::FlagZero, Align);
|
||||
+ Align);
|
||||
Var->addDebugInfo(GVE);
|
||||
}
|
||||
DeclCache[D->getCanonicalDecl()].reset(GVE);
|
||||
@@ -4276,7 +4276,7 @@ void CGDebugInfo::EmitGlobalVariable(const ValueDecl *
|
||||
GV.reset(DBuilder.createGlobalVariableExpression(
|
||||
DContext, Name, StringRef(), Unit, getLineNumber(VD->getLocation()), Ty,
|
||||
true, InitExpr, getOrCreateStaticDataMemberDeclarationOrNull(VarD),
|
||||
- TemplateParameters, llvm::DINode::FlagZero, Align));
|
||||
+ TemplateParameters, Align));
|
||||
}
|
||||
|
||||
llvm::DIScope *CGDebugInfo::getCurrentContextDescriptor(const Decl *D) {
|
Loading…
Add table
Add a link
Reference in a new issue