diff options
Diffstat (limited to 'examples/Kaleidoscope/MCJIT/complete/toy.cpp')
-rw-r--r-- | examples/Kaleidoscope/MCJIT/complete/toy.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/Kaleidoscope/MCJIT/complete/toy.cpp b/examples/Kaleidoscope/MCJIT/complete/toy.cpp index 40a00693e8cb..98bdad1e9907 100644 --- a/examples/Kaleidoscope/MCJIT/complete/toy.cpp +++ b/examples/Kaleidoscope/MCJIT/complete/toy.cpp @@ -1474,7 +1474,8 @@ static void HandleDefinition() { Function *LF = F->Codegen(); if (LF && VerboseOutput) { fprintf(stderr, "Read function definition:"); - LF->dump(); + LF->print(errs()); + fprintf(stderr, "\n"); } } else { // Skip token for error recovery. @@ -1487,7 +1488,8 @@ static void HandleExtern() { Function *F = P->Codegen(); if (F && VerboseOutput) { fprintf(stderr, "Read extern: "); - F->dump(); + F->print(errs()); + fprintf(stderr, "\n"); } } else { // Skip token for error recovery. |