summaryrefslogtreecommitdiff
path: root/lib/Support/Windows/Host.inc
blob: 606e95707dc5de49ea56cfd197cf1921e4a4080c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//===- llvm/Support/Win32/Host.inc -------------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file implements the Win32 Host support.
//
//===----------------------------------------------------------------------===//

#include "Windows.h"
#include <cstdio>
#include <string>

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() != "";
}

std::string sys::getDefaultTargetFloat() {
  return LLVM_DEFAULT_TARGET_FLOAT;
}

bool sys::hasDefaultTargetFloat() {
  return getDefaultTargetFloat() != "";
}

std::string sys::getDefaultTargetFpu() {
  return LLVM_DEFAULT_TARGET_FPU;
}

bool sys::hasDefaultTargetFpu() {
  return getDefaultTargetFpu() != "";
}