Host.inc 882 B

12345678910111213141516171819202122232425262728
  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. #include "WindowsSupport.h"
  14. #include <cstdio>
  15. #include <string>
  16. using namespace llvm;
  17. // HLSL Change Starts - this is a fixed static char array now.
  18. #if _WIN32
  19. const char *sys::getDefaultTargetTriple() { return "dxil-ms-dx"; }
  20. #else
  21. std::string sys::getDefaultTargetTriple() {
  22. return Triple::normalize(LLVM_DEFAULT_TARGET_TRIPLE);
  23. }
  24. #endif
  25. // HLSL Change Ends - this is a fixed static char array now.