diff options
author | David Blaikie <dblaikie@gmail.com> | 2018-03-28 17:44:36 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2018-03-28 17:44:36 +0000 |
commit | a373d18eb7d718de1a2155b9d8a5d64d6f74e131 (patch) | |
tree | d0ba8756bb27a216297873a90e847953e3ebb344 /llvm/examples | |
parent | d579c31d684678d2bf136cc8253616bb616bd5f6 (diff) | |
download | bcm5719-llvm-a373d18eb7d718de1a2155b9d8a5d64d6f74e131.tar.gz bcm5719-llvm-a373d18eb7d718de1a2155b9d8a5d64d6f74e131.zip |
Transforms: Introduce Transforms/Utils.h rather than spreading the declarations amongst Scalar.h and IPO.h
Fixes layering - Transforms/Utils shouldn't depend on including a Scalar
or IPO header, because Scalar and IPO depend on Utils.
llvm-svn: 328717
Diffstat (limited to 'llvm/examples')
-rw-r--r-- | llvm/examples/Kaleidoscope/Chapter7/toy.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/examples/Kaleidoscope/Chapter7/toy.cpp b/llvm/examples/Kaleidoscope/Chapter7/toy.cpp index 32f4a658c5d..7d45552bed8 100644 --- a/llvm/examples/Kaleidoscope/Chapter7/toy.cpp +++ b/llvm/examples/Kaleidoscope/Chapter7/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" @@ -15,7 +16,7 @@ #include "llvm/Target/TargetMachine.h" #include "llvm/Transforms/Scalar.h" #include "llvm/Transforms/Scalar/GVN.h" -#include "../include/KaleidoscopeJIT.h" +#include "llvm/Transforms/Utils.h" #include <algorithm> #include <cassert> #include <cctype> |