summaryrefslogtreecommitdiff
path: root/include/lld/Common/TargetOptionsCommandFlags.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lld/Common/TargetOptionsCommandFlags.h')
-rw-r--r--include/lld/Common/TargetOptionsCommandFlags.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/lld/Common/TargetOptionsCommandFlags.h b/include/lld/Common/TargetOptionsCommandFlags.h
new file mode 100644
index 0000000000000..9c4ff7cea3fb8
--- /dev/null
+++ b/include/lld/Common/TargetOptionsCommandFlags.h
@@ -0,0 +1,21 @@
+//===-- TargetOptionsCommandFlags.h ----------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// Helper to create TargetOptions from command line flags.
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/ADT/Optional.h"
+#include "llvm/Support/CodeGen.h"
+#include "llvm/Target/TargetOptions.h"
+
+namespace lld {
+llvm::TargetOptions InitTargetOptionsFromCodeGenFlags();
+llvm::Optional<llvm::CodeModel::Model> GetCodeModelFromCMModel();
+}