diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:01:22 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:01:22 +0000 |
commit | 71d5a2540a98c81f5bcaeb48805e0e2881f530ef (patch) | |
tree | 5343938942df402b49ec7300a1c25a2d4ccd5821 /examples/Kaleidoscope/MCJIT/initial/toy.cpp | |
parent | 31bbf64f3a4974a2d6c8b3b27ad2f519caf74057 (diff) |
Diffstat (limited to 'examples/Kaleidoscope/MCJIT/initial/toy.cpp')
-rw-r--r-- | examples/Kaleidoscope/MCJIT/initial/toy.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/Kaleidoscope/MCJIT/initial/toy.cpp b/examples/Kaleidoscope/MCJIT/initial/toy.cpp index 1e476aef7862..9b84fd443d65 100644 --- a/examples/Kaleidoscope/MCJIT/initial/toy.cpp +++ b/examples/Kaleidoscope/MCJIT/initial/toy.cpp @@ -1252,7 +1252,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 { @@ -1266,7 +1267,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 { @@ -1370,7 +1372,7 @@ int main() { #ifndef MINIMAL_STDERR_OUTPUT // Print out all of the generated code. - TheHelper->dump(); + TheHelper->print(errs()); #endif return 0; |