Skip to content

Conversation

el-ev
Copy link
Member

@el-ev el-ev commented Mar 28, 2025

@el-ev
Copy link
Member Author

el-ev commented Mar 28, 2025

The codegen parts are currently not testable. #1521 (comment)

Copy link
Member

@bcardosolopes bcardosolopes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks great, some nits inline

@@ -2041,7 +2041,7 @@ void CIRGenModule::emitTopLevelDecl(Decl *decl) {
case PCK_Unknown:
llvm_unreachable("unexpected pragma comment kind");
case PCK_Linker:
assert(!MissingFeatures::emitModuleLinkOptions() && "NYI");
appendLinkerOptions(PCD->getArg());
Copy link
Member

@bcardosolopes bcardosolopes Mar 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you can't stress this path in the tests because we currently lack support for windows, you shouldn't change anything under lib/CIR/CodeGen as part of this PR. Alternatively you can add the missing windows support in another PR and then re-introduce this.

@el-ev el-ev changed the title [CIR][CIRGen][LowerToLLVM] Support for LinkerOptions [CIR][LowerToLLVM] Support for LinkerOptions lowering Apr 1, 2025
@bcardosolopes bcardosolopes merged commit c57b86b into llvm:main Apr 1, 2025
9 checks passed
@el-ev el-ev deleted the linker-opt branch April 1, 2025 03:02
terapines-osc-cir pushed a commit to Terapines/clangir that referenced this pull request Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants