forked from OSchip/llvm-project
[ORC] Remove unused headers.
This commit is contained in:
parent
f58c0a962c
commit
626a84e3b3
|
@ -21,7 +21,6 @@
|
||||||
#include "llvm/ADT/StringMap.h"
|
#include "llvm/ADT/StringMap.h"
|
||||||
#include "llvm/ADT/StringRef.h"
|
#include "llvm/ADT/StringRef.h"
|
||||||
#include "llvm/ExecutionEngine/JITSymbol.h"
|
#include "llvm/ExecutionEngine/JITSymbol.h"
|
||||||
#include "llvm/ExecutionEngine/OrcV1Deprecation.h"
|
|
||||||
#include "llvm/IR/DataLayout.h"
|
#include "llvm/IR/DataLayout.h"
|
||||||
#include "llvm/IR/Module.h"
|
#include "llvm/IR/Module.h"
|
||||||
#include "llvm/Object/Binary.h"
|
#include "llvm/Object/Binary.h"
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
#include "llvm/ExecutionEngine/JITSymbol.h"
|
#include "llvm/ExecutionEngine/JITSymbol.h"
|
||||||
#include "llvm/ExecutionEngine/Orc/ExecutorProcessControl.h"
|
#include "llvm/ExecutionEngine/Orc/ExecutorProcessControl.h"
|
||||||
#include "llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h"
|
#include "llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h"
|
||||||
#include "llvm/ExecutionEngine/OrcV1Deprecation.h"
|
|
||||||
#include "llvm/Support/Debug.h"
|
#include "llvm/Support/Debug.h"
|
||||||
#include "llvm/Support/ExtensibleRTTI.h"
|
#include "llvm/Support/ExtensibleRTTI.h"
|
||||||
|
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
//===---- OrcMCJITReplacement.h - Orc-based MCJIT replacement ---*- C++ -*-===//
|
|
||||||
//
|
|
||||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
||||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
||||||
//
|
|
||||||
//===----------------------------------------------------------------------===//
|
|
||||||
//
|
|
||||||
// This file forces OrcMCJITReplacement to link in on certain operating systems.
|
|
||||||
// (Windows).
|
|
||||||
//
|
|
||||||
//===----------------------------------------------------------------------===//
|
|
||||||
|
|
||||||
#ifndef LLVM_EXECUTIONENGINE_ORCMCJITREPLACEMENT_H
|
|
||||||
#define LLVM_EXECUTIONENGINE_ORCMCJITREPLACEMENT_H
|
|
||||||
|
|
||||||
#include "llvm/ExecutionEngine/ExecutionEngine.h"
|
|
||||||
#include <cstdlib>
|
|
||||||
|
|
||||||
extern "C" void LLVMLinkInOrcMCJITReplacement();
|
|
||||||
|
|
||||||
namespace {
|
|
||||||
struct ForceOrcMCJITReplacementLinking {
|
|
||||||
ForceOrcMCJITReplacementLinking() {
|
|
||||||
// We must reference OrcMCJITReplacement in such a way that compilers will
|
|
||||||
// not delete it all as dead code, even with whole program optimization,
|
|
||||||
// yet is effectively a NO-OP. As the compiler isn't smart enough to know
|
|
||||||
// that getenv() never returns -1, this will do the job.
|
|
||||||
if (std::getenv("bar") != (char*) -1)
|
|
||||||
return;
|
|
||||||
|
|
||||||
LLVMLinkInOrcMCJITReplacement();
|
|
||||||
}
|
|
||||||
} ForceOrcMCJITReplacementLinking;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -1,22 +0,0 @@
|
||||||
//===------ OrcV1Deprecation.h - Memory manager for MC-JIT ------*- C++ -*-===//
|
|
||||||
//
|
|
||||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
||||||
// See https://llvm.org/LICENSE.txt for license information.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
||||||
//
|
|
||||||
//===----------------------------------------------------------------------===//
|
|
||||||
//
|
|
||||||
// Tag for suppressing ORCv1 deprecation warnings.
|
|
||||||
//
|
|
||||||
//===----------------------------------------------------------------------===//
|
|
||||||
|
|
||||||
#ifndef LLVM_EXECUTIONENGINE_ORCV1DEPRECATION_H
|
|
||||||
#define LLVM_EXECUTIONENGINE_ORCV1DEPRECATION_H
|
|
||||||
|
|
||||||
namespace llvm {
|
|
||||||
|
|
||||||
enum ORCv1DeprecationAcknowledgement { AcknowledgeORCv1Deprecation };
|
|
||||||
|
|
||||||
} // namespace llvm
|
|
||||||
|
|
||||||
#endif // LLVM_EXECUTIONENGINE_ORCV1DEPRECATION_H
|
|
|
@ -181,7 +181,6 @@ module LLVM_ExecutionEngine {
|
||||||
// translation unit (or none) and aren't part of this module.
|
// translation unit (or none) and aren't part of this module.
|
||||||
exclude header "ExecutionEngine/MCJIT.h"
|
exclude header "ExecutionEngine/MCJIT.h"
|
||||||
exclude header "ExecutionEngine/Interpreter.h"
|
exclude header "ExecutionEngine/Interpreter.h"
|
||||||
exclude header "ExecutionEngine/OrcMCJITReplacement.h"
|
|
||||||
|
|
||||||
// FIXME: These exclude directives were added as a workaround for
|
// FIXME: These exclude directives were added as a workaround for
|
||||||
// <rdar://problem/29247092> and should be removed once it is fixed.
|
// <rdar://problem/29247092> and should be removed once it is fixed.
|
||||||
|
|
Loading…
Reference in New Issue