summaryrefslogtreecommitdiffstats
path: root/llvm/examples/Kaleidoscope/Chapter9/toy.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-01-28 02:47:46 +0000
committerMatthias Braun <matze@braunis.de>2017-01-28 02:47:46 +0000
commit25bcaba50eaa77cb4e59ea129664513ce7f8ed38 (patch)
tree1124531229248f488000c4d646de1e69f341f0e5 /llvm/examples/Kaleidoscope/Chapter9/toy.cpp
parent95be17230856cd79de19d2f5637b081694154fcf (diff)
downloadbcm5719-llvm-25bcaba50eaa77cb4e59ea129664513ce7f8ed38.tar.gz
bcm5719-llvm-25bcaba50eaa77cb4e59ea129664513ce7f8ed38.zip
Use print() instead of dump() in code
The dump() functions are meant to be used in a debugger, code should typically use something like print(errs()); llvm-svn: 293365
Diffstat (limited to 'llvm/examples/Kaleidoscope/Chapter9/toy.cpp')
-rw-r--r--llvm/examples/Kaleidoscope/Chapter9/toy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/Kaleidoscope/Chapter9/toy.cpp b/llvm/examples/Kaleidoscope/Chapter9/toy.cpp
index a482ccd7352..aa609933fc9 100644
--- a/llvm/examples/Kaleidoscope/Chapter9/toy.cpp
+++ b/llvm/examples/Kaleidoscope/Chapter9/toy.cpp
@@ -1439,7 +1439,7 @@ int main() {
DBuilder->finalize();
// Print out all of the generated code.
- TheModule->dump();
+ TheModule->print(errs(), nullptr);
return 0;
}
OpenPOWER on IntegriCloud