GlobalISel: properly conditionalize LLT use.
authorTim Northover <tnorthover@apple.com>
Wed, 20 Jul 2016 19:17:29 +0000 (19:17 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 20 Jul 2016 19:17:29 +0000 (19:17 +0000)
We can't guard the include of LowLevelType.h because getType and setType are
(trivial) functions even when GlobalISel isn't built.

llvm-svn: 276160

llvm/include/llvm/CodeGen/MachineInstr.h

index b9c6546..ab31a83 100644 (file)
@@ -23,9 +23,7 @@
 #include "llvm/ADT/iterator_range.h"
 #include "llvm/Analysis/AliasAnalysis.h"
 #include "llvm/CodeGen/MachineOperand.h"
-#ifdef LLVM_BUILD_GLOBAL_ISEL
 #include "llvm/CodeGen/LowLevelType.h"
-#endif
 #include "llvm/IR/DebugLoc.h"
 #include "llvm/IR/InlineAsm.h"
 #include "llvm/MC/MCInstrDesc.h"