OrcTestCommon.cpp 1.1 KB

1234567891011121314151617181920212223242526272829
  1. //===--------- OrcTestCommon.cpp - Utilities for Orc Unit Tests -----------===//
  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. // Common utilities for Orc unit tests.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #include "OrcTestCommon.h"
  13. using namespace llvm;
  14. const JITTargetAddress llvm::orc::CoreAPIsBasedStandardTest::FooAddr;
  15. const JITTargetAddress llvm::orc::CoreAPIsBasedStandardTest::BarAddr;
  16. const JITTargetAddress llvm::orc::CoreAPIsBasedStandardTest::BazAddr;
  17. const JITTargetAddress llvm::orc::CoreAPIsBasedStandardTest::QuxAddr;
  18. bool OrcNativeTarget::NativeTargetInitialized = false;
  19. ModuleBuilder::ModuleBuilder(LLVMContext &Context, StringRef Triple,
  20. StringRef Name)
  21. : M(new Module(Name, Context)) {
  22. if (Triple != "")
  23. M->setTargetTriple(Triple);
  24. }