diff options
Diffstat (limited to 'examples/Kaleidoscope/MCJIT/lazy/toy.cpp')
-rw-r--r-- | examples/Kaleidoscope/MCJIT/lazy/toy.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/Kaleidoscope/MCJIT/lazy/toy.cpp b/examples/Kaleidoscope/MCJIT/lazy/toy.cpp index 37339b60b44..3511f3ac93b 100644 --- a/examples/Kaleidoscope/MCJIT/lazy/toy.cpp +++ b/examples/Kaleidoscope/MCJIT/lazy/toy.cpp @@ -1293,7 +1293,8 @@ static void HandleDefinition() { if (Function *LF = F->Codegen()) { #ifndef MINIMAL_STDERR_OUTPUT fprintf(stderr, "Read function definition:"); - LF->dump(); + LF->print(errs()); + fprintf(stderr, "\n"); #endif } } else { @@ -1307,7 +1308,8 @@ static void HandleExtern() { if (Function *F = P->Codegen()) { #ifndef MINIMAL_STDERR_OUTPUT fprintf(stderr, "Read extern: "); - F->dump(); + F->print(errs()); + fprintf(stderr, "\n"); #endif } } else { |