diff options
Diffstat (limited to 'examples/Kaleidoscope/BuildingAJIT/Chapter4/toy.cpp')
-rw-r--r-- | examples/Kaleidoscope/BuildingAJIT/Chapter4/toy.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/Kaleidoscope/BuildingAJIT/Chapter4/toy.cpp b/examples/Kaleidoscope/BuildingAJIT/Chapter4/toy.cpp index 07981a8f79b..ff4b5220105 100644 --- a/examples/Kaleidoscope/BuildingAJIT/Chapter4/toy.cpp +++ b/examples/Kaleidoscope/BuildingAJIT/Chapter4/toy.cpp @@ -1126,7 +1126,8 @@ static void HandleExtern() { if (auto ProtoAST = ParseExtern()) { if (auto *FnIR = ProtoAST->codegen()) { fprintf(stderr, "Read extern: "); - FnIR->dump(); + FnIR->print(errs()); + fprintf(stderr, "\n"); FunctionProtos[ProtoAST->getName()] = std::move(ProtoAST); } } else { |