diff options
| author | David Blaikie <dblaikie@gmail.com> | 2018-04-24 00:48:59 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2018-04-24 00:48:59 +0000 |
| commit | a27771b62f2f8c399ed8fac124810a273226d5d5 (patch) | |
| tree | 9d460637b3905c15ac1d14080a397001299e5e04 /llvm/examples/Kaleidoscope/Chapter5 | |
| parent | 1bcb258ba319c380b206c2ab7d9f8baaffcb2058 (diff) | |
| download | bcm5719-llvm-a27771b62f2f8c399ed8fac124810a273226d5d5.tar.gz bcm5719-llvm-a27771b62f2f8c399ed8fac124810a273226d5d5.zip | |
InstCombine: Fix layering by not including Scalar.h in InstCombine
(notionally Scalar.h is part of libLLVMScalarOpts, so it shouldn't be
included by InstCombine which doesn't/shouldn't need to depend on
ScalarOpts)
llvm-svn: 330669
Diffstat (limited to 'llvm/examples/Kaleidoscope/Chapter5')
| -rw-r--r-- | llvm/examples/Kaleidoscope/Chapter5/toy.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/examples/Kaleidoscope/Chapter5/toy.cpp b/llvm/examples/Kaleidoscope/Chapter5/toy.cpp index 2d23bdb26c2..c5e9a322a30 100644 --- a/llvm/examples/Kaleidoscope/Chapter5/toy.cpp +++ b/llvm/examples/Kaleidoscope/Chapter5/toy.cpp @@ -1,11 +1,12 @@ +#include "../include/KaleidoscopeJIT.h" #include "llvm/ADT/APFloat.h" #include "llvm/ADT/STLExtras.h" #include "llvm/IR/BasicBlock.h" #include "llvm/IR/Constants.h" #include "llvm/IR/DerivedTypes.h" #include "llvm/IR/Function.h" -#include "llvm/IR/Instructions.h" #include "llvm/IR/IRBuilder.h" +#include "llvm/IR/Instructions.h" #include "llvm/IR/LLVMContext.h" #include "llvm/IR/LegacyPassManager.h" #include "llvm/IR/Module.h" @@ -13,9 +14,9 @@ #include "llvm/IR/Verifier.h" #include "llvm/Support/TargetSelect.h" #include "llvm/Target/TargetMachine.h" +#include "llvm/Transforms/InstCombine/InstCombine.h" #include "llvm/Transforms/Scalar.h" #include "llvm/Transforms/Scalar/GVN.h" -#include "../include/KaleidoscopeJIT.h" #include <algorithm> #include <cassert> #include <cctype> |

