summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kirth <paulkirth@google.com>2024-04-04 11:53:59 -0700
committerPaul Kirth <paulkirth@google.com>2024-04-04 11:53:59 -0700
commitc35a29f3cc5ab1bf98ac3ff6f29322d765d3e9b5 (patch)
treeda3c75cfaa1a18bf98ef738776063359afc37e9d
parent5b959310b0fae723bd119ed8815bf1cb1a8c67d4 (diff)
Created using spr 1.3.4 [skip ci]
-rw-r--r--llvm/lib/Target/RISCV/RISCVSubtarget.h1
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;