summaryrefslogtreecommitdiff
path: root/lib/Support/Windows/Host.inc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support/Windows/Host.inc')
-rw-r--r--lib/Support/Windows/Host.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Support/Windows/Host.inc b/lib/Support/Windows/Host.inc
index 2e6d6f1903..ae7e9ef9ed 100644
--- a/lib/Support/Windows/Host.inc
+++ b/lib/Support/Windows/Host.inc
@@ -20,3 +20,11 @@ using namespace llvm;
std::string sys::getDefaultTargetTriple() {
return LLVM_DEFAULT_TARGET_TRIPLE;
}
+
+std::string sys::getDefaultTargetCpu() {
+ return LLVM_DEFAULT_TARGET_MCPU;
+}
+
+bool sys::hasDefaultTargetCpu() {
+ return getDefaultTargetCpu() != "";
+}