Skip to content

Commit

Permalink
remove cgm/cgf usages
Browse files Browse the repository at this point in the history
Created using spr 1.3.5
  • Loading branch information
lanza committed Dec 12, 2024
1 parent 38dc33a commit 912e55b
Show file tree
Hide file tree
Showing 4 changed files with 329 additions and 163 deletions.
2 changes: 1 addition & 1 deletion clang/include/clang/CIR/Interfaces/ASTAttrInterfaces.td
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ let cppNamespace = "::cir" in {
/*defaultImplementation=*/ [{
std::unique_ptr<clang::MangleContext> mangleCtx(
$_attr.getAst()->getASTContext().createMangleContext());
mangleCtx->mangleDynamicInitializer($_attr.getAst(), Out);
mangleCtx->mangleStaticGuardVariable($_attr.getAst(), Out);
}]
>,
InterfaceMethod<"", "clang::VarDecl::TLSKind", "getTLSKind", (ins), [{}],
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/CIR/CodeGen/CIRGenModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class CIRGenModule : public CIRGenTypeCache {
llvm::DenseSet<clang::GlobalDecl> DiagnosedConflictingDefinitions;

CIRGenModule *createMinimalCGM() {
auto cgm = new CIRGenModule(getMLIRContext(), getASTContext(),
auto *cgm = new CIRGenModule(getMLIRContext(), getASTContext(),
getCodeGenOpts(), getDiags());
}

Expand Down
Loading

0 comments on commit 912e55b

Please sign in to comment.