[llvm] r294726 - add #ifdef, fix compilation error in case LLVM_BUILD_GLOBAL_ISEL=OFF
Igor Breger via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 9 23:33:14 PST 2017
Author: ibreger
Date: Fri Feb 10 01:33:14 2017
New Revision: 294726
URL: http://llvm.org/viewvc/llvm-project?rev=294726&view=rev
Log:
add #ifdef, fix compilation error in case LLVM_BUILD_GLOBAL_ISEL=OFF
Modified:
llvm/trunk/lib/Target/X86/X86TargetMachine.cpp
Modified: llvm/trunk/lib/Target/X86/X86TargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86TargetMachine.cpp?rev=294726&r1=294725&r2=294726&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86TargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86TargetMachine.cpp Fri Feb 10 01:33:14 2017
@@ -15,7 +15,9 @@
#include "X86.h"
#include "X86CallLowering.h"
#include "X86LegalizerInfo.h"
+#ifdef LLVM_BUILD_GLOBAL_ISEL
#include "X86RegisterBankInfo.h"
+#endif
#include "X86MacroFusion.h"
#include "X86Subtarget.h"
#include "X86TargetMachine.h"
More information about the llvm-commits
mailing list