aboutsummaryrefslogtreecommitdiffstats
path: root/Common/TargetOptionsCommandFlags.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Common/TargetOptionsCommandFlags.cpp')
-rw-r--r--Common/TargetOptionsCommandFlags.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Common/TargetOptionsCommandFlags.cpp b/Common/TargetOptionsCommandFlags.cpp
index d4c29d7f88b8..0137feb63f37 100644
--- a/Common/TargetOptionsCommandFlags.cpp
+++ b/Common/TargetOptionsCommandFlags.cpp
@@ -26,6 +26,10 @@ llvm::TargetOptions lld::initTargetOptionsFromCodeGenFlags() {
return ::InitTargetOptionsFromCodeGenFlags();
}
+llvm::Optional<llvm::Reloc::Model> lld::getRelocModelFromCMModel() {
+ return getRelocModel();
+}
+
llvm::Optional<llvm::CodeModel::Model> lld::getCodeModelFromCMModel() {
return getCodeModel();
}