LLVM  8.0.1
Host.inc
Go to the documentation of this file.
1 //===- llvm/Support/Win32/Host.inc ------------------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file implements the Win32 Host support.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #include "WindowsSupport.h"
15 #include <cstdio>
16 #include <string>
17 
18 using namespace llvm;
19 
20 static std::string updateTripleOSVersion(std::string Triple) {
21  return Triple;
22 }
23 
24 std::string sys::getDefaultTargetTriple() {
25  const char *Triple = LLVM_DEFAULT_TARGET_TRIPLE;
26 
27  // Override the default target with an environment variable named by LLVM_TARGET_TRIPLE_ENV.
28 #if defined(LLVM_TARGET_TRIPLE_ENV)
29  if (const char *EnvTriple = std::getenv(LLVM_TARGET_TRIPLE_ENV))
30  Triple = EnvTriple;
31 #endif
32 
33  return Triple;
34 }
This class represents lattice values for constants.
Definition: AllocatorList.h:24
std::string getDefaultTargetTriple()
getDefaultTargetTriple() - Return the default target triple the compiler has been configured to produ...
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44