DirectX.cpp 787 B

12345678910111213141516171819202122
  1. //===--- DirectX.cpp - Implement DirectX target feature support -----------===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. //
  9. // This file implements DirectX TargetInfo objects.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #include "DirectX.h"
  13. #include "Targets.h"
  14. using namespace clang;
  15. using namespace clang::targets;
  16. void DirectXTargetInfo::getTargetDefines(const LangOptions &Opts,
  17. MacroBuilder &Builder) const {
  18. DefineStd(Builder, "DIRECTX", Opts);
  19. }