diff options
author | Paul Kirth <paulkirth@google.com> | 2024-04-04 11:53:59 -0700 |
---|---|---|
committer | Paul Kirth <paulkirth@google.com> | 2024-04-04 11:53:59 -0700 |
commit | c35a29f3cc5ab1bf98ac3ff6f29322d765d3e9b5 (patch) | |
tree | da3c75cfaa1a18bf98ef738776063359afc37e9d | |
parent | 5b959310b0fae723bd119ed8815bf1cb1a8c67d4 (diff) |
[𝘀𝗽𝗿] changes to main this commit is based onupstream/users/ilovepi/spr/main.riscv-precommit-stack-protector-checks-for-linux-and-android
Created using spr 1.3.4
[skip ci]
-rw-r--r-- | llvm/lib/Target/RISCV/RISCVSubtarget.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/RISCV/RISCVSubtarget.h b/llvm/lib/Target/RISCV/RISCVSubtarget.h index ba108912d934..85f8f5f654fe 100644 --- a/llvm/lib/Target/RISCV/RISCVSubtarget.h +++ b/llvm/lib/Target/RISCV/RISCVSubtarget.h @@ -254,6 +254,7 @@ public: const LegalizerInfo *getLegalizerInfo() const override; const RegisterBankInfo *getRegBankInfo() const override; + bool isTargetAndroid() const { return getTargetTriple().isAndroid(); } bool isTargetFuchsia() const { return getTargetTriple().isOSFuchsia(); } bool useConstantPoolForLargeInts() const; |