aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorShiva Chen <shiva@andestech.com>2020-03-10 10:23:59 +0800
committershiva <shiva0217@gmail.com>2020-03-20 11:03:51 +0800
commitfc3752665f4b7ae2ec3faad4204512687800c1ec (patch)
treefa536e0aa128d8f9f0efed40a6b93406278b5754 /clang/lib/CodeGen/CodeGenModule.h
parent0ddd04391d281b1d8679ff95ddfce79a61253250 (diff)
downloadllvm-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.h4
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();