diff options
| author | Craig Topper <craig.topper@sifive.com> | 2022-08-19 08:59:49 -0700 |
|---|---|---|
| committer | Craig Topper <craig.topper@sifive.com> | 2022-08-19 09:11:22 -0700 |
| commit | 1a60e003df8a8c03aae123bdec77e6a9db690862 (patch) | |
| tree | 6a21428ee028a5c7f86dc1dbce652015e999a999 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | a47ec1b79797c8c48c44f9ddf36fb82f8d87229d (diff) | |
[RISCV] Use Triple::isRISCV/isRISCV32/isRISCV64 helps in some places. NFC
Reviewed By: reames
Differential Revision: https://reviews.llvm.org/D132197
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 639285540c0a..9b97e890c352 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -968,14 +968,9 @@ void CodeGenModule::EmitOpenCLMetadata() { void CodeGenModule::EmitBackendOptionsMetadata( const CodeGenOptions CodeGenOpts) { - switch (getTriple().getArch()) { - default: - break; - case llvm::Triple::riscv32: - case llvm::Triple::riscv64: + if (getTriple().isRISCV()) { getModule().addModuleFlag(llvm::Module::Error, "SmallDataLimit", CodeGenOpts.SmallDataLimit); - break; } } |
