diff options
author | Shiva Chen <shiva@andestech.com> | 2020-03-10 10:23:59 +0800 |
---|---|---|
committer | shiva <shiva0217@gmail.com> | 2020-03-20 11:03:51 +0800 |
commit | fc3752665f4b7ae2ec3faad4204512687800c1ec (patch) | |
tree | fa536e0aa128d8f9f0efed40a6b93406278b5754 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 0ddd04391d281b1d8679ff95ddfce79a61253250 (diff) | |
download | llvm-fc3752665f4b7ae2ec3faad4204512687800c1ec.zip llvm-fc3752665f4b7ae2ec3faad4204512687800c1ec.tar.gz llvm-fc3752665f4b7ae2ec3faad4204512687800c1ec.tar.bz2 |
[RISCV] Passing small data limitation value to RISCV backend
Passing small data limit to RISCVELFTargetObjectFile by module flag,
So the backend can set small data section threshold by the value.
The data will be put into the small data section if the data smaller than
the threshold.
Differential Revision: https://reviews.llvm.org/D57497
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index fc44866..391aa70 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -1512,6 +1512,10 @@ private: /// Emits target specific Metadata for global declarations. void EmitTargetMetadata(); + /// Emit the module flag metadata used to pass options controlling the + /// the backend to LLVM. + void EmitBackendOptionsMetadata(const CodeGenOptions CodeGenOpts); + /// Emits OpenCL specific Metadata e.g. OpenCL version. void EmitOpenCLMetadata(); |