[globalisel] LLVM_BUILD_GLOBAL_ISEL=OFF should prevent GlobalISel instruction selector from being declared.

llvm-svn: 297786
This commit is contained in:
Daniel Sanders 2017-03-14 22:09:29 +00:00
parent f81cc098ca
commit a228df75c0
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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