[irgen] Make HasAArch64TBI an IRGen option instead of a LangOpts.

With some changes that I am making, we will no longer need this flag at the SIL
level, so we can just make it an IRGen flag (which it really should have been
in the first place).
This commit is contained in:
Michael Gottesman
2025-09-25 15:29:46 -05:00
parent 80f052e251
commit 361e63c815
4 changed files with 9 additions and 10 deletions

View File

@@ -375,7 +375,7 @@ void CompilerInvocation::computeAArch64TBIOptions() {
auto &LLVMArgs = getFrontendOptions().LLVMArgs;
auto aarch64_use_tbi =
std::find(LLVMArgs.begin(), LLVMArgs.end(), "-aarch64-use-tbi");
LangOpts.HasAArch64TBI = aarch64_use_tbi != LLVMArgs.end();
IRGenOpts.HasAArch64TBI = aarch64_use_tbi != LLVMArgs.end();
}
void CompilerInvocation::computeCXXStdlibOptions() {