Move WinAdapter into interface directory (#5066)
Since it is shipped and relied upon, the WinAdapter header belongs in the release directory. This removes the need to include the Support directory for building purposes revises fix to #4918
This commit is contained in:
Родитель
845efa9521
Коммит
5eb7c77d7c
|
@ -608,7 +608,6 @@ endif()
|
|||
|
||||
include_directories( ${LLVM_INCLUDE_DIR} ${LLVM_MAIN_INCLUDE_DIR})
|
||||
|
||||
include_directories( ${LLVM_MAIN_INCLUDE_DIR}/dxc/Support) # HLSL Change
|
||||
include_directories( ${LLVM_INCLUDE_DIR}/dxc/Tracing) # HLSL Change
|
||||
|
||||
# when crosscompiling import the executable targets from a file
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <stdint.h>
|
||||
#include <iterator>
|
||||
#include "dxc/DXIL/DxilConstants.h"
|
||||
#include "dxc/Support/WinAdapter.h"
|
||||
#include "dxc/WinAdapter.h"
|
||||
|
||||
struct IDxcContainerReflection;
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include <cstring>
|
||||
#include "dxc/Support/WinAdapter.h"
|
||||
#include "dxc/WinAdapter.h"
|
||||
|
||||
// Don't include assert.h here.
|
||||
// Since this header is included from multiple environments,
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "dxc/DXIL/DxilConstants.h"
|
||||
#include "dxc/Support/WinAdapter.h"
|
||||
#include "dxc/WinAdapter.h"
|
||||
|
||||
#define RDAT_NULL_REF ((uint32_t)0xFFFFFFFF)
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "dxc/Support/WinAdapter.h"
|
||||
#include "dxc/WinAdapter.h"
|
||||
#include "dxc/DXIL/DxilConstants.h"
|
||||
|
||||
struct IDxcBlob;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
#include "dxc/Support/Global.h"
|
||||
#include "dxc/DXIL/DxilConstants.h"
|
||||
#include "dxc/Support/WinAdapter.h"
|
||||
#include "dxc/WinAdapter.h"
|
||||
#include <memory>
|
||||
|
||||
namespace llvm {
|
||||
|
|
|
@ -27,7 +27,7 @@ typedef _Return_type_success_(return >= 0) long HRESULT;
|
|||
#include <stdarg.h>
|
||||
#include <system_error>
|
||||
#include "dxc/Support/exception.h"
|
||||
#include "dxc/Support/WinAdapter.h"
|
||||
#include "dxc/WinAdapter.h"
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Memory allocation support.
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#ifndef LLVM_SUPPORT_WINFUNCTIONS_H
|
||||
#define LLVM_SUPPORT_WINFUNCTIONS_H
|
||||
|
||||
#include "dxc/Support/WinAdapter.h"
|
||||
#include "dxc/WinAdapter.h"
|
||||
|
||||
#ifndef _WIN32
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ template <class T> void swap(CComHeapPtr<T> &a, CComHeapPtr<T> &b) {
|
|||
|
||||
#else // _MSC_VER
|
||||
|
||||
#include "dxc/Support/WinAdapter.h"
|
||||
#include "dxc/WinAdapter.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
// Define operator overloads to enable bit operations on enum values that are
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "dxc/Support/ErrorCodes.h"
|
||||
#include "dxc/Support/WinAdapter.h"
|
||||
#include "dxc/WinAdapter.h"
|
||||
#include <exception>
|
||||
#include <string>
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <unistd.h>
|
||||
#include <wchar.h>
|
||||
|
||||
#include "dxc/Support/WinAdapter.h"
|
||||
#include "dxc/WinAdapter.h"
|
||||
#include "dxc/Support/WinFunctions.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#ifndef LLVM_C_CORE_H
|
||||
#define LLVM_C_CORE_H
|
||||
|
||||
#include "dxc/Support/WinAdapter.h" // HLSL Change
|
||||
#include "dxc/WinAdapter.h" // HLSL Change
|
||||
#include "llvm-c/Support.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#ifndef LLVM_C_DISASSEMBLER_H
|
||||
#define LLVM_C_DISASSEMBLER_H
|
||||
|
||||
#include "dxc/Support/WinAdapter.h" // HLSL Change
|
||||
#include "dxc/WinAdapter.h" // HLSL Change
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <stddef.h>
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#ifndef LLVM_ADT_STLEXTRAS_H
|
||||
#define LLVM_ADT_STLEXTRAS_H
|
||||
|
||||
#include "dxc/Support/WinAdapter.h" // HLSL Change
|
||||
#include "dxc/WinAdapter.h" // HLSL Change
|
||||
#include "llvm/Support/Compiler.h"
|
||||
#include <algorithm> // for std::all_of
|
||||
#include <cassert>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#ifndef LLVM_ANALYSIS_CONSTANTFOLDING_H
|
||||
#define LLVM_ANALYSIS_CONSTANTFOLDING_H
|
||||
|
||||
#include "dxc/Support/WinAdapter.h" // HLSL Change
|
||||
#include "dxc/WinAdapter.h" // HLSL Change
|
||||
|
||||
namespace llvm {
|
||||
class Constant;
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#ifndef LLVM_MC_MCSTREAMER_H
|
||||
#define LLVM_MC_MCSTREAMER_H
|
||||
|
||||
#include "dxc/Support/WinAdapter.h" // HLSL Change
|
||||
#include "dxc/WinAdapter.h" // HLSL Change
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/MC/MCDirectives.h"
|
||||
|
|
|
@ -180,7 +180,7 @@ unsigned getNumBytesForUTF8(UTF8 firstByte);
|
|||
/*************************************************************************/
|
||||
/* Below are LLVM-specific wrappers of the functions above. */
|
||||
|
||||
#include "dxc/Support/WinAdapter.h" // HLSL Change
|
||||
#include "dxc/WinAdapter.h" // HLSL Change
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#ifndef LLVM_SUPPORT_FILESYSTEM_H
|
||||
#define LLVM_SUPPORT_FILESYSTEM_H
|
||||
|
||||
#include "dxc/Support/WinAdapter.h" // HLSL Change
|
||||
#include "dxc/WinAdapter.h" // HLSL Change
|
||||
#include "llvm/ADT/IntrusiveRefCntPtr.h"
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
#include "llvm/ADT/Twine.h"
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#ifndef LLVM_SUPPORT_FORMAT_H
|
||||
#define LLVM_SUPPORT_FORMAT_H
|
||||
|
||||
#include "dxc/Support/WinAdapter.h" // HLSL Change
|
||||
#include "dxc/WinAdapter.h" // HLSL Change
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#ifndef LLVM_SUPPORT_MATHEXTRAS_H
|
||||
#define LLVM_SUPPORT_MATHEXTRAS_H
|
||||
|
||||
#include "dxc/Support/WinAdapter.h" // HLSL Change
|
||||
#include "dxc/WinAdapter.h" // HLSL Change
|
||||
#include "llvm/Support/Compiler.h"
|
||||
#include "llvm/Support/SwapByteOrder.h"
|
||||
#include <cassert>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#ifdef _WIN32
|
||||
#include <sal.h>
|
||||
#else
|
||||
#include "dxc/Support/WinAdapter.h"
|
||||
#include "dxc/WinAdapter.h"
|
||||
#endif
|
||||
// HLSL Change Ends
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include "dxc/DXIL/DxilShaderModel.h"
|
||||
#include "dxc/DXIL/DxilSignatureElement.h"
|
||||
#include "dxc/DXIL/DxilFunctionProps.h"
|
||||
#include "dxc/Support/WinAdapter.h"
|
||||
#include "dxc/WinAdapter.h"
|
||||
#include "dxc/DXIL/DxilEntryProps.h"
|
||||
#include "dxc/DXIL/DxilSubobject.h"
|
||||
#include "dxc/DXIL/DxilInstructions.h"
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include "dxc/DXIL/DxilShaderModel.h"
|
||||
#include "dxc/DXIL/DxilSignatureElement.h"
|
||||
#include "dxc/DXIL/DxilFunctionProps.h"
|
||||
#include "dxc/Support/WinAdapter.h"
|
||||
#include "dxc/WinAdapter.h"
|
||||
#include "dxc/DXIL/DxilEntryProps.h"
|
||||
#include "dxc/DXIL/DxilSubobject.h"
|
||||
#include "dxc/DXIL/DxilInstructions.h"
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "dxc/Support/Global.h"
|
||||
#include "dxc/Support/WinAdapter.h"
|
||||
#include "dxc/WinAdapter.h"
|
||||
#include "dxc/DxilContainer/DxilContainer.h"
|
||||
#include "dxc/DxilContainer/DxilContainerReader.h"
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
#else
|
||||
// Dummy D3D11 struct to allow nix-dead code to compile
|
||||
struct D3D11_SHADER_INPUT_BIND_DESC {int dummy;};
|
||||
#include "dxc/Support/WinAdapter.h"
|
||||
#include "dxc/WinAdapter.h"
|
||||
#endif
|
||||
|
||||
#include "dxc/DxilContainer/DxilRuntimeReflection.h"
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "dxc/HLSL/HLModule.h"
|
||||
#include "dxc/DXIL/DxilTypeSystem.h"
|
||||
#include "dxc/DXIL/DxilUtil.h"
|
||||
#include "dxc/Support/WinAdapter.h"
|
||||
#include "dxc/WinAdapter.h"
|
||||
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/IR/Constants.h"
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#include <new>
|
||||
|
||||
#include "dxc/Support/WinIncludes.h"
|
||||
#include "dxc/Support/WinAdapter.h"
|
||||
#include "dxc/WinAdapter.h"
|
||||
#include "llvm/Support/MSFileSystem.h"
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "dxc/Support/WinAdapter.h" // HLSL Change
|
||||
#include "dxc/WinAdapter.h" // HLSL Change
|
||||
#include "llvm/Support/ConvertUTF.h"
|
||||
#include "llvm/Support/SwapByteOrder.h"
|
||||
#include <string>
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
|
||||
#include "regutils.h"
|
||||
|
||||
#include "dxc/Support/WinAdapter.h" // HLSL Change
|
||||
#include "dxc/WinAdapter.h" // HLSL Change
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define snprintf _snprintf
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
#ifndef _REGEX_IMPL_H_ // HLSL Change
|
||||
#define _REGEX_IMPL_H_ // HLSL Change
|
||||
|
||||
#include "dxc/Support/WinAdapter.h" // HLSL Change
|
||||
#include "dxc/WinAdapter.h" // HLSL Change
|
||||
#include <sys/types.h>
|
||||
|
||||
typedef off_t llvm_regoff_t;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "clang/Basic/SourceLocation.h"
|
||||
#include "clang/Basic/Specifiers.h"
|
||||
#include "dxc/DXIL/DxilConstants.h"
|
||||
#include "dxc/Support/WinAdapter.h"
|
||||
#include "dxc/WinAdapter.h"
|
||||
#include "llvm/Support/Casting.h"
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/ADT/Optional.h"
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "dxc/Support/Global.h"
|
||||
#include "dxc/Support/WinIncludes.h"
|
||||
#include "dxc/Support/WinAdapter.h"
|
||||
#include "dxc/WinAdapter.h"
|
||||
#include "dxc/dxcapi.internal.h"
|
||||
#include "dxc/HlslIntrinsicOp.h"
|
||||
#include "gen_intrin_main_tables_15.h"
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#ifndef __DXC_DXILLIB__
|
||||
#define __DXC_DXILLIB__
|
||||
|
||||
#include "dxc/Support/WinAdapter.h"
|
||||
#include "dxc/WinAdapter.h"
|
||||
#include "dxc/Support/WinIncludes.h"
|
||||
|
||||
// Initialize Dxil library.
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
#include "HLSLTestOptions.h"
|
||||
#include "dxc/Test/WEXAdapter.h"
|
||||
#include "dxc/Support/WinAdapter.h"
|
||||
#include "dxc/WinAdapter.h"
|
||||
|
||||
namespace clang {
|
||||
namespace hlsl {
|
||||
|
|
Загрузка…
Ссылка в новой задаче