[llvm] [AArch64] Transition from MCSymbolRefExpr::VariantKind constants (PR #133214)

via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 18 09:29:07 PDT 2025


peledins-zimperium wrote:

Before this commit we used to be able to say
`const auto* targetExpr = llvm::MCSymbolRefExpr::create(targetSymbol, llvm::MCSymbolRefExpr::VariantKind::VK_PAGE, tmpCtx);` 

with this change, it seems like I should be able to say:

`const auto* targetExpr = llvm::MCSymbolRefExpr::create(targetSymbol, llvm::AArch64MCExpr::M_PAGE, tmpCtx);` 

However, AArch64MCExpr is not in includes. Is there a way to to do this w/o touching internals?

https://github.com/llvm/llvm-project/pull/133214


More information about the llvm-commits mailing list