diff options
Diffstat (limited to 'examples/Kaleidoscope/MCJIT/lazy/toy-jit.cpp')
-rw-r--r-- | examples/Kaleidoscope/MCJIT/lazy/toy-jit.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/Kaleidoscope/MCJIT/lazy/toy-jit.cpp b/examples/Kaleidoscope/MCJIT/lazy/toy-jit.cpp index f0c5ad5a46d7..3caeab4c745a 100644 --- a/examples/Kaleidoscope/MCJIT/lazy/toy-jit.cpp +++ b/examples/Kaleidoscope/MCJIT/lazy/toy-jit.cpp @@ -1010,7 +1010,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 { @@ -1024,7 +1025,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 { @@ -1157,7 +1159,7 @@ int main(int argc, char **argv) { // Print out all of the generated code. TheFPM = 0; #ifndef MINIMAL_STDERR_OUTPUT - TheModule->dump(); + TheModule->print(errs(), nullptr); #endif return 0; } |