diff options
| -rw-r--r-- | llvm/lib/Target/AArch64/AArch64InstructionSelector.h | 3 | ||||
| -rw-r--r-- | llvm/lib/Target/X86/X86InstructionSelector.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64InstructionSelector.h b/llvm/lib/Target/AArch64/AArch64InstructionSelector.h index 6c9339e05d6..f8472f7a06d 100644 --- a/llvm/lib/Target/AArch64/AArch64InstructionSelector.h +++ b/llvm/lib/Target/AArch64/AArch64InstructionSelector.h @@ -11,6 +11,8 @@ /// AArch64. //===----------------------------------------------------------------------===// +#ifdef LLVM_BUILD_GLOBAL_ISEL + #ifndef LLVM_LIB_TARGET_AARCH64_AARCH64INSTRUCTIONSELECTOR_H #define LLVM_LIB_TARGET_AARCH64_AARCH64INSTRUCTIONSELECTOR_H @@ -66,3 +68,4 @@ private: } // end namespace llvm #endif // LLVM_LIB_TARGET_AARCH64_AARCH64INSTRUCTIONSELECTOR_H +#endif // LLVM_BUILD_GLOBAL_ISEL diff --git a/llvm/lib/Target/X86/X86InstructionSelector.h b/llvm/lib/Target/X86/X86InstructionSelector.h index 205c8626656..2482734fa7d 100644 --- a/llvm/lib/Target/X86/X86InstructionSelector.h +++ b/llvm/lib/Target/X86/X86InstructionSelector.h @@ -10,6 +10,7 @@ /// This file declares the targeting of the InstructionSelector class for X86. //===----------------------------------------------------------------------===// +#ifdef LLVM_BUILD_GLOBAL_ISEL #ifndef LLVM_LIB_TARGET_X86_X86INSTRUCTIONSELECTOR_H #define LLVM_LIB_TARGET_X86_X86INSTRUCTIONSELECTOR_H @@ -59,3 +60,4 @@ private: } // end namespace llvm #endif // LLVM_LIB_TARGET_X86_X86INSTRUCTIONSELECTOR_H +#endif // LLVM_BUILD_GLOBAL_ISEL |

