diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2015-02-13 10:21:05 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2015-02-13 10:21:05 +0000 |
commit | 7ecd99163c4ab06768f7987a32b921f8e15efa31 (patch) | |
tree | 78c19870a3881daea1ec7b6495d19a99626e87ea /llvm/examples/Kaleidoscope/Chapter8/toy.cpp | |
parent | 30d69c2e3681f2a422032bfaa3e085b17e948663 (diff) | |
download | bcm5719-llvm-7ecd99163c4ab06768f7987a32b921f8e15efa31.tar.gz bcm5719-llvm-7ecd99163c4ab06768f7987a32b921f8e15efa31.zip |
[PM] Update the examples to reflect the removal of the
llvm/PassManager.h wrapper header and its using declarations. These now
directly use the legacy namespace.
I had updated the #include lines in my large commit but forgot that the
examples weren't being built and didn't update the code to use the
correct namespace. Sorry for the noise here.
llvm-svn: 229095
Diffstat (limited to 'llvm/examples/Kaleidoscope/Chapter8/toy.cpp')
-rw-r--r-- | llvm/examples/Kaleidoscope/Chapter8/toy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/examples/Kaleidoscope/Chapter8/toy.cpp b/llvm/examples/Kaleidoscope/Chapter8/toy.cpp index 4cdadfba6a4..30d4669e19c 100644 --- a/llvm/examples/Kaleidoscope/Chapter8/toy.cpp +++ b/llvm/examples/Kaleidoscope/Chapter8/toy.cpp @@ -855,7 +855,7 @@ static DICompositeType CreateFunctionType(unsigned NumArgs, DIFile Unit) { static Module *TheModule; static std::map<std::string, AllocaInst *> NamedValues; -static FunctionPassManager *TheFPM; +static legacy::FunctionPassManager *TheFPM; Value *ErrorV(const char *Str) { Error(Str); @@ -1454,7 +1454,7 @@ int main() { exit(1); } - FunctionPassManager OurFPM(TheModule); + legacy::FunctionPassManager OurFPM(TheModule); // Set up the optimizer pipeline. Start with registering info about how the // target lays out data structures. |