<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I’m not 100% sure this is this commit or the previous one, but looks like we miss some other places to be fixed:<div class=""><a href="http://lab.llvm.org:8011/builders/lldb-amd64-ninja-netbsd7/builds/4384/steps/ninja build local/logs/stdio" class="">http://lab.llvm.org:8011/builders/lldb-amd64-ninja-netbsd7/builds/4384/steps/ninja%20build%20local/logs/stdio</a></div><div class=""><br class=""></div><div class=""><pre style="font-family: 'Courier New', courier, monotype, monospace;" class=""><span class="stdout">MergeFunctions.cpp:(.text._ZN12_GLOBAL__N_114MergeFunctions13doSanityCheckERSt6vectorIN4llvm6WeakVHESaIS3_EE+0x22b): undefined reference to `llvm::Value::dump() const'
MergeFunctions.cpp:(.text._ZN12_GLOBAL__N_114MergeFunctions13doSanityCheckERSt6vectorIN4llvm6WeakVHESaIS3_EE+0x237): undefined reference to `llvm::Value::dump() const'
MergeFunctions.cpp:(.text._ZN12_GLOBAL__N_114MergeFunctions13doSanityCheckERSt6vectorIN4llvm6WeakVHESaIS3_EE+0x46f): undefined reference to `llvm::Value::dump() const'
MergeFunctions.cpp:(.text._ZN12_GLOBAL__N_114MergeFunctions13doSanityCheckERSt6vectorIN4llvm6WeakVHESaIS3_EE+0x47b): undefined reference to `llvm::Value::dump() const'
MergeFunctions.cpp:(.text._ZN12_GLOBAL__N_114MergeFunctions13doSanityCheckERSt6vectorIN4llvm6WeakVHESaIS3_EE+0x487): undefined reference to `llvm::Value::dump() const'
</span><span class="stdout">[3</span></pre><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On Jan 27, 2017, at 6:47 PM, Matthias Braun via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org" class="">llvm-commits@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Author: matze<br class="">Date: Fri Jan 27 20:47:46 2017<br class="">New Revision: 293365<br class=""><br class="">URL: <a href="http://llvm.org/viewvc/llvm-project?rev=293365&view=rev" class="">http://llvm.org/viewvc/llvm-project?rev=293365&view=rev</a><br class="">Log:<br class="">Use print() instead of dump() in code<br class=""><br class="">The dump() functions are meant to be used in a debugger, code should<br class="">typically use something like print(errs());<br class=""><br class="">Modified:<br class="">    llvm/trunk/docs/tutorial/LangImpl04.rst<br class="">    llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter1/toy.cpp<br class="">    llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp<br class="">    llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter3/toy.cpp<br class="">    llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter4/toy.cpp<br class="">    llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp<br class="">    llvm/trunk/examples/Kaleidoscope/Chapter3/toy.cpp<br class="">    llvm/trunk/examples/Kaleidoscope/Chapter4/toy.cpp<br class="">    llvm/trunk/examples/Kaleidoscope/Chapter5/toy.cpp<br class="">    llvm/trunk/examples/Kaleidoscope/Chapter6/toy.cpp<br class="">    llvm/trunk/examples/Kaleidoscope/Chapter7/toy.cpp<br class="">    llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp<br class="">    llvm/trunk/examples/Kaleidoscope/Chapter9/toy.cpp<br class="">    llvm/trunk/examples/Kaleidoscope/MCJIT/cached/toy.cpp<br class="">    llvm/trunk/examples/Kaleidoscope/MCJIT/complete/toy.cpp<br class="">    llvm/trunk/examples/Kaleidoscope/MCJIT/initial/toy.cpp<br class="">    llvm/trunk/examples/Kaleidoscope/MCJIT/lazy/toy-jit.cpp<br class="">    llvm/trunk/examples/Kaleidoscope/MCJIT/lazy/toy.cpp<br class="">    llvm/trunk/lib/TableGen/TGParser.cpp<br class="">    llvm/trunk/utils/TableGen/SubtargetFeatureInfo.cpp<br class=""><br class="">Modified: llvm/trunk/docs/tutorial/LangImpl04.rst<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/tutorial/LangImpl04.rst?rev=293365&r1=293364&r2=293365&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/tutorial/LangImpl04.rst?rev=293365&r1=293364&r2=293365&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/docs/tutorial/LangImpl04.rst (original)<br class="">+++ llvm/trunk/docs/tutorial/LangImpl04.rst Fri Jan 27 20:47:46 2017<br class="">@@ -458,7 +458,8 @@ We also need to update HandleDefinition<br class="">       if (auto FnAST = ParseDefinition()) {<br class="">         if (auto *FnIR = FnAST->codegen()) {<br class="">           fprintf(stderr, "Read function definition:");<br class="">-          FnIR->dump();<br class="">+          FnIR->print(errs());<br class="">+          fprintf(stderr, "\n");<br class="">           TheJIT->addModule(std::move(TheModule));<br class="">           InitializeModuleAndPassManager();<br class="">         }<br class="">@@ -472,7 +473,8 @@ We also need to update HandleDefinition<br class="">       if (auto ProtoAST = ParseExtern()) {<br class="">         if (auto *FnIR = ProtoAST->codegen()) {<br class="">           fprintf(stderr, "Read extern: ");<br class="">-          FnIR->dump();<br class="">+          FnIR->print(errs());<br class="">+          fprintf(stderr, "\n");<br class="">           FunctionProtos[ProtoAST->getName()] = std::move(ProtoAST);<br class="">         }<br class="">       } else {<br class=""><br class="">Modified: llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter1/toy.cpp<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter1/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter1/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter1/toy.cpp (original)<br class="">+++ llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter1/toy.cpp Fri Jan 27 20:47:46 2017<br class="">@@ -1110,7 +1110,8 @@ static void HandleDefinition() {<br class="">   if (auto FnAST = ParseDefinition()) {<br class="">     if (auto *FnIR = FnAST->codegen()) {<br class="">       fprintf(stderr, "Read function definition:");<br class="">-      FnIR->dump();<br class="">+      FnIR->print(errs());<br class="">+      fprintf(stderr, "\n");<br class="">       TheJIT->addModule(std::move(TheModule));<br class="">       InitializeModule();<br class="">     }<br class="">@@ -1124,7 +1125,8 @@ static void HandleExtern() {<br class="">   if (auto ProtoAST = ParseExtern()) {<br class="">     if (auto *FnIR = ProtoAST->codegen()) {<br class="">       fprintf(stderr, "Read extern: ");<br class="">-      FnIR->dump();<br class="">+      FnIR->print(errs());<br class="">+      fprintf(stderr, "\n");<br class="">       FunctionProtos[ProtoAST->getName()] = std::move(ProtoAST);<br class="">     }<br class="">   } else {<br class=""><br class="">Modified: llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp (original)<br class="">+++ llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp Fri Jan 27 20:47:46 2017<br class="">@@ -1110,7 +1110,8 @@ static void HandleDefinition() {<br class="">   if (auto FnAST = ParseDefinition()) {<br class="">     if (auto *FnIR = FnAST->codegen()) {<br class="">       fprintf(stderr, "Read function definition:");<br class="">-      FnIR->dump();<br class="">+      FnIR->print(errs());<br class="">+      fprintf(stderr, "\n");<br class="">       TheJIT->addModule(std::move(TheModule));<br class="">       InitializeModule();<br class="">     }<br class="">@@ -1124,7 +1125,8 @@ static void HandleExtern() {<br class="">   if (auto ProtoAST = ParseExtern()) {<br class="">     if (auto *FnIR = ProtoAST->codegen()) {<br class="">       fprintf(stderr, "Read extern: ");<br class="">-      FnIR->dump();<br class="">+      FnIR->print(errs());<br class="">+      fprintf(stderr, "\n");<br class="">       FunctionProtos[ProtoAST->getName()] = std::move(ProtoAST);<br class="">     }<br class="">   } else {<br class=""><br class="">Modified: llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter3/toy.cpp<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter3/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter3/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter3/toy.cpp (original)<br class="">+++ llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter3/toy.cpp Fri Jan 27 20:47:46 2017<br class="">@@ -1110,7 +1110,8 @@ static void HandleDefinition() {<br class="">   if (auto FnAST = ParseDefinition()) {<br class="">     if (auto *FnIR = FnAST->codegen()) {<br class="">       fprintf(stderr, "Read function definition:");<br class="">-      FnIR->dump();<br class="">+      FnIR->print(errs());<br class="">+      fprintf(stderr, "\n");<br class="">       TheJIT->addModule(std::move(TheModule));<br class="">       InitializeModule();<br class="">     }<br class="">@@ -1124,7 +1125,8 @@ static void HandleExtern() {<br class="">   if (auto ProtoAST = ParseExtern()) {<br class="">     if (auto *FnIR = ProtoAST->codegen()) {<br class="">       fprintf(stderr, "Read extern: ");<br class="">-      FnIR->dump();<br class="">+      FnIR->print(errs());<br class="">+      fprintf(stderr, "\n");<br class="">       FunctionProtos[ProtoAST->getName()] = std::move(ProtoAST);<br class="">     }<br class="">   } else {<br class=""><br class="">Modified: llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter4/toy.cpp<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter4/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter4/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter4/toy.cpp (original)<br class="">+++ llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter4/toy.cpp Fri Jan 27 20:47:46 2017<br class="">@@ -1126,7 +1126,8 @@ static void HandleExtern() {<br class="">   if (auto ProtoAST = ParseExtern()) {<br class="">     if (auto *FnIR = ProtoAST->codegen()) {<br class="">       fprintf(stderr, "Read extern: ");<br class="">-      FnIR->dump();<br class="">+      FnIR->print(errs());<br class="">+      fprintf(stderr, "\n");<br class="">       FunctionProtos[ProtoAST->getName()] = std::move(ProtoAST);<br class="">     }<br class="">   } else {<br class=""><br class="">Modified: llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp (original)<br class="">+++ llvm/trunk/examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp Fri Jan 27 20:47:46 2017<br class="">@@ -1150,7 +1150,8 @@ static void HandleExtern() {<br class="">   if (auto ProtoAST = ParseExtern()) {<br class="">     if (auto *FnIR = ProtoAST->codegen()) {<br class="">       fprintf(stderr, "Read extern: ");<br class="">-      FnIR->dump();<br class="">+      FnIR->print(errs());<br class="">+      fprintf(stderr, "\n");<br class="">       FunctionProtos[ProtoAST->getName()] = std::move(ProtoAST);<br class="">     }<br class="">   } else {<br class=""><br class="">Modified: llvm/trunk/examples/Kaleidoscope/Chapter3/toy.cpp<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Chapter3/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Chapter3/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/examples/Kaleidoscope/Chapter3/toy.cpp (original)<br class="">+++ llvm/trunk/examples/Kaleidoscope/Chapter3/toy.cpp Fri Jan 27 20:47:46 2017<br class="">@@ -522,7 +522,8 @@ static void HandleDefinition() {<br class="">   if (auto FnAST = ParseDefinition()) {<br class="">     if (auto *FnIR = FnAST->codegen()) {<br class="">       fprintf(stderr, "Read function definition:");<br class="">-      FnIR->dump();<br class="">+      FnIR->print(errs());<br class="">+      fprintf(stderr, "\n");<br class="">     }<br class="">   } else {<br class="">     // Skip token for error recovery.<br class="">@@ -534,7 +535,8 @@ static void HandleExtern() {<br class="">   if (auto ProtoAST = ParseExtern()) {<br class="">     if (auto *FnIR = ProtoAST->codegen()) {<br class="">       fprintf(stderr, "Read extern: ");<br class="">-      FnIR->dump();<br class="">+      FnIR->print(errs());<br class="">+      fprintf(stderr, "\n");<br class="">     }<br class="">   } else {<br class="">     // Skip token for error recovery.<br class="">@@ -547,7 +549,8 @@ static void HandleTopLevelExpression() {<br class="">   if (auto FnAST = ParseTopLevelExpr()) {<br class="">     if (auto *FnIR = FnAST->codegen()) {<br class="">       fprintf(stderr, "Read top-level expression:");<br class="">-      FnIR->dump();<br class="">+      FnIR->print(errs());<br class="">+      fprintf(stderr, "\n");<br class="">     }<br class="">   } else {<br class="">     // Skip token for error recovery.<br class="">@@ -601,7 +604,7 @@ int main() {<br class="">   MainLoop();<br class=""><br class="">   // Print out all of the generated code.<br class="">-  TheModule->dump();<br class="">+  TheModule->print(errs(), nullptr);<br class=""><br class="">   return 0;<br class=""> }<br class=""><br class="">Modified: llvm/trunk/examples/Kaleidoscope/Chapter4/toy.cpp<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Chapter4/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Chapter4/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/examples/Kaleidoscope/Chapter4/toy.cpp (original)<br class="">+++ llvm/trunk/examples/Kaleidoscope/Chapter4/toy.cpp Fri Jan 27 20:47:46 2017<br class="">@@ -571,7 +571,8 @@ static void HandleDefinition() {<br class="">   if (auto FnAST = ParseDefinition()) {<br class="">     if (auto *FnIR = FnAST->codegen()) {<br class="">       fprintf(stderr, "Read function definition:");<br class="">-      FnIR->dump();<br class="">+      FnIR->print(errs());<br class="">+      fprintf(stderr, "\n");<br class="">       TheJIT->addModule(std::move(TheModule));<br class="">       InitializeModuleAndPassManager();<br class="">     }<br class="">@@ -585,7 +586,8 @@ static void HandleExtern() {<br class="">   if (auto ProtoAST = ParseExtern()) {<br class="">     if (auto *FnIR = ProtoAST->codegen()) {<br class="">       fprintf(stderr, "Read extern: ");<br class="">-      FnIR->dump();<br class="">+      FnIR->print(errs());<br class="">+      fprintf(stderr, "\n");<br class="">       FunctionProtos[ProtoAST->getName()] = std::move(ProtoAST);<br class="">     }<br class="">   } else {<br class=""><br class="">Modified: llvm/trunk/examples/Kaleidoscope/Chapter5/toy.cpp<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Chapter5/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Chapter5/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/examples/Kaleidoscope/Chapter5/toy.cpp (original)<br class="">+++ llvm/trunk/examples/Kaleidoscope/Chapter5/toy.cpp Fri Jan 27 20:47:46 2017<br class="">@@ -845,7 +845,8 @@ static void HandleDefinition() {<br class="">   if (auto FnAST = ParseDefinition()) {<br class="">     if (auto *FnIR = FnAST->codegen()) {<br class="">       fprintf(stderr, "Read function definition:");<br class="">-      FnIR->dump();<br class="">+      FnIR->print(errs());<br class="">+      fprintf(stderr, "\n");<br class="">       TheJIT->addModule(std::move(TheModule));<br class="">       InitializeModuleAndPassManager();<br class="">     }<br class="">@@ -859,7 +860,8 @@ static void HandleExtern() {<br class="">   if (auto ProtoAST = ParseExtern()) {<br class="">     if (auto *FnIR = ProtoAST->codegen()) {<br class="">       fprintf(stderr, "Read extern: ");<br class="">-      FnIR->dump();<br class="">+      FnIR->print(errs());<br class="">+      fprintf(stderr, "\n");<br class="">       FunctionProtos[ProtoAST->getName()] = std::move(ProtoAST);<br class="">     }<br class="">   } else {<br class=""><br class="">Modified: llvm/trunk/examples/Kaleidoscope/Chapter6/toy.cpp<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Chapter6/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Chapter6/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/examples/Kaleidoscope/Chapter6/toy.cpp (original)<br class="">+++ llvm/trunk/examples/Kaleidoscope/Chapter6/toy.cpp Fri Jan 27 20:47:46 2017<br class="">@@ -964,7 +964,8 @@ static void HandleDefinition() {<br class="">   if (auto FnAST = ParseDefinition()) {<br class="">     if (auto *FnIR = FnAST->codegen()) {<br class="">       fprintf(stderr, "Read function definition:");<br class="">-      FnIR->dump();<br class="">+      FnIR->print(errs());<br class="">+      fprintf(stderr, "\n");<br class="">       TheJIT->addModule(std::move(TheModule));<br class="">       InitializeModuleAndPassManager();<br class="">     }<br class="">@@ -978,7 +979,8 @@ static void HandleExtern() {<br class="">   if (auto ProtoAST = ParseExtern()) {<br class="">     if (auto *FnIR = ProtoAST->codegen()) {<br class="">       fprintf(stderr, "Read extern: ");<br class="">-      FnIR->dump();<br class="">+      FnIR->print(errs());<br class="">+      fprintf(stderr, "\n");<br class="">       FunctionProtos[ProtoAST->getName()] = std::move(ProtoAST);<br class="">     }<br class="">   } else {<br class=""><br class="">Modified: llvm/trunk/examples/Kaleidoscope/Chapter7/toy.cpp<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Chapter7/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Chapter7/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/examples/Kaleidoscope/Chapter7/toy.cpp (original)<br class="">+++ llvm/trunk/examples/Kaleidoscope/Chapter7/toy.cpp Fri Jan 27 20:47:46 2017<br class="">@@ -1131,7 +1131,8 @@ static void HandleDefinition() {<br class="">   if (auto FnAST = ParseDefinition()) {<br class="">     if (auto *FnIR = FnAST->codegen()) {<br class="">       fprintf(stderr, "Read function definition:");<br class="">-      FnIR->dump();<br class="">+      FnIR->print(errs());<br class="">+      fprintf(stderr, "\n");<br class="">       TheJIT->addModule(std::move(TheModule));<br class="">       InitializeModuleAndPassManager();<br class="">     }<br class="">@@ -1145,7 +1146,8 @@ static void HandleExtern() {<br class="">   if (auto ProtoAST = ParseExtern()) {<br class="">     if (auto *FnIR = ProtoAST->codegen()) {<br class="">       fprintf(stderr, "Read extern: ");<br class="">-      FnIR->dump();<br class="">+      FnIR->print(errs());<br class="">+      fprintf(stderr, "\n");<br class="">       FunctionProtos[ProtoAST->getName()] = std::move(ProtoAST);<br class="">     }<br class="">   } else {<br class=""><br class="">Modified: llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp (original)<br class="">+++ llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp Fri Jan 27 20:47:46 2017<br class="">@@ -1114,7 +1114,8 @@ static void HandleDefinition() {<br class="">   if (auto FnAST = ParseDefinition()) {<br class="">     if (auto *FnIR = FnAST->codegen()) {<br class="">       fprintf(stderr, "Read function definition:");<br class="">-      FnIR->dump();<br class="">+      FnIR->print(errs());<br class="">+      fprintf(stderr, "\n");<br class="">     }<br class="">   } else {<br class="">     // Skip token for error recovery.<br class="">@@ -1126,7 +1127,8 @@ static void HandleExtern() {<br class="">   if (auto ProtoAST = ParseExtern()) {<br class="">     if (auto *FnIR = ProtoAST->codegen()) {<br class="">       fprintf(stderr, "Read extern: ");<br class="">-      FnIR->dump();<br class="">+      FnIR->print(errs());<br class="">+      fprintf(stderr, "\n");<br class="">       FunctionProtos[ProtoAST->getName()] = std::move(ProtoAST);<br class="">     }<br class="">   } else {<br class=""><br class="">Modified: llvm/trunk/examples/Kaleidoscope/Chapter9/toy.cpp<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Chapter9/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Chapter9/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/examples/Kaleidoscope/Chapter9/toy.cpp (original)<br class="">+++ llvm/trunk/examples/Kaleidoscope/Chapter9/toy.cpp Fri Jan 27 20:47:46 2017<br class="">@@ -1439,7 +1439,7 @@ int main() {<br class="">   DBuilder->finalize();<br class=""><br class="">   // Print out all of the generated code.<br class="">-  TheModule->dump();<br class="">+  TheModule->print(errs(), nullptr);<br class=""><br class="">   return 0;<br class=""> }<br class=""><br class="">Modified: llvm/trunk/examples/Kaleidoscope/MCJIT/cached/toy.cpp<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/MCJIT/cached/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/MCJIT/cached/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/examples/Kaleidoscope/MCJIT/cached/toy.cpp (original)<br class="">+++ llvm/trunk/examples/Kaleidoscope/MCJIT/cached/toy.cpp Fri Jan 27 20:47:46 2017<br class="">@@ -1395,7 +1395,8 @@ static void HandleDefinition() {<br class="">     if (Function *LF = F->Codegen()) {<br class=""> #ifndef MINIMAL_STDERR_OUTPUT<br class="">       fprintf(stderr, "Read function definition:");<br class="">-      LF->dump();<br class="">+      LF->print(errs());<br class="">+      fprintf(stderr, "\n");<br class=""> #endif<br class="">     }<br class="">   } else {<br class="">@@ -1409,7 +1410,8 @@ static void HandleExtern() {<br class="">     if (Function *F = P->Codegen()) {<br class=""> #ifndef MINIMAL_STDERR_OUTPUT<br class="">       fprintf(stderr, "Read extern: ");<br class="">-      F->dump();<br class="">+      F->print(errs());<br class="">+      fprintf(stderr, "\n");<br class=""> #endif<br class="">     }<br class="">   } else {<br class="">@@ -1540,7 +1542,7 @@ int main(int argc, char **argv) {<br class=""><br class=""> #ifndef MINIMAL_STDERR_OUTPUT<br class="">   // Print out all of the generated code.<br class="">-  TheHelper->dump();<br class="">+  TheHelper->print(errs());<br class=""> #endif<br class=""><br class="">   return 0;<br class=""><br class="">Modified: llvm/trunk/examples/Kaleidoscope/MCJIT/complete/toy.cpp<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/MCJIT/complete/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/MCJIT/complete/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/examples/Kaleidoscope/MCJIT/complete/toy.cpp (original)<br class="">+++ llvm/trunk/examples/Kaleidoscope/MCJIT/complete/toy.cpp Fri Jan 27 20:47:46 2017<br class="">@@ -1474,7 +1474,8 @@ static void HandleDefinition() {<br class="">     Function *LF = F->Codegen();<br class="">     if (LF && VerboseOutput) {<br class="">       fprintf(stderr, "Read function definition:");<br class="">-      LF->dump();<br class="">+      LF->print(errs());<br class="">+      fprintf(stderr, "\n");<br class="">     }<br class="">   } else {<br class="">     // Skip token for error recovery.<br class="">@@ -1487,7 +1488,8 @@ static void HandleExtern() {<br class="">     Function *F = P->Codegen();<br class="">     if (F && VerboseOutput) {<br class="">       fprintf(stderr, "Read extern: ");<br class="">-      F->dump();<br class="">+      F->print(errs());<br class="">+      fprintf(stderr, "\n");<br class="">     }<br class="">   } else {<br class="">     // Skip token for error recovery.<br class=""><br class="">Modified: llvm/trunk/examples/Kaleidoscope/MCJIT/initial/toy.cpp<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/MCJIT/initial/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/MCJIT/initial/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/examples/Kaleidoscope/MCJIT/initial/toy.cpp (original)<br class="">+++ llvm/trunk/examples/Kaleidoscope/MCJIT/initial/toy.cpp Fri Jan 27 20:47:46 2017<br class="">@@ -1252,7 +1252,8 @@ static void HandleDefinition() {<br class="">     if (Function *LF = F->Codegen()) {<br class=""> #ifndef MINIMAL_STDERR_OUTPUT<br class="">       fprintf(stderr, "Read function definition:");<br class="">-      LF->dump();<br class="">+      LF->print(errs());<br class="">+      fprintf(stderr, "\n");<br class=""> #endif<br class="">     }<br class="">   } else {<br class="">@@ -1266,7 +1267,8 @@ static void HandleExtern() {<br class="">     if (Function *F = P->Codegen()) {<br class=""> #ifndef MINIMAL_STDERR_OUTPUT<br class="">       fprintf(stderr, "Read extern: ");<br class="">-      F->dump();<br class="">+      F->print(errs());<br class="">+      fprintf(stderr, "\n");<br class=""> #endif<br class="">     }<br class="">   } else {<br class="">@@ -1370,7 +1372,7 @@ int main() {<br class=""><br class=""> #ifndef MINIMAL_STDERR_OUTPUT<br class="">   // Print out all of the generated code.<br class="">-  TheHelper->dump();<br class="">+  TheHelper->print(errs());<br class=""> #endif<br class=""><br class="">   return 0;<br class=""><br class="">Modified: llvm/trunk/examples/Kaleidoscope/MCJIT/lazy/toy-jit.cpp<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/MCJIT/lazy/toy-jit.cpp?rev=293365&r1=293364&r2=293365&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/MCJIT/lazy/toy-jit.cpp?rev=293365&r1=293364&r2=293365&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/examples/Kaleidoscope/MCJIT/lazy/toy-jit.cpp (original)<br class="">+++ llvm/trunk/examples/Kaleidoscope/MCJIT/lazy/toy-jit.cpp Fri Jan 27 20:47:46 2017<br class="">@@ -1010,7 +1010,8 @@ static void HandleDefinition() {<br class="">     if (Function *LF = F->Codegen()) {<br class=""> #ifndef MINIMAL_STDERR_OUTPUT<br class="">       fprintf(stderr, "Read function definition:");<br class="">-      LF->dump();<br class="">+      LF->print(errs());<br class="">+      fprintf(stderr, "\n");<br class=""> #endif<br class="">     }<br class="">   } else {<br class="">@@ -1024,7 +1025,8 @@ static void HandleExtern() {<br class="">     if (Function *F = P->Codegen()) {<br class=""> #ifndef MINIMAL_STDERR_OUTPUT<br class="">       fprintf(stderr, "Read extern: ");<br class="">-      F->dump();<br class="">+      F->print(errs());<br class="">+      fprintf(stderr, "\n");<br class=""> #endif<br class="">     }<br class="">   } else {<br class="">@@ -1157,7 +1159,7 @@ int main(int argc, char **argv) {<br class="">   // Print out all of the generated code.<br class="">   TheFPM = 0;<br class=""> #ifndef MINIMAL_STDERR_OUTPUT<br class="">-  TheModule->dump();<br class="">+  TheModule->print(errs(), nullptr);<br class=""> #endif<br class="">   return 0;<br class=""> }<br class=""><br class="">Modified: llvm/trunk/examples/Kaleidoscope/MCJIT/lazy/toy.cpp<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/MCJIT/lazy/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/MCJIT/lazy/toy.cpp?rev=293365&r1=293364&r2=293365&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/examples/Kaleidoscope/MCJIT/lazy/toy.cpp (original)<br class="">+++ llvm/trunk/examples/Kaleidoscope/MCJIT/lazy/toy.cpp Fri Jan 27 20:47:46 2017<br class="">@@ -1293,7 +1293,8 @@ static void HandleDefinition() {<br class="">     if (Function *LF = F->Codegen()) {<br class=""> #ifndef MINIMAL_STDERR_OUTPUT<br class="">       fprintf(stderr, "Read function definition:");<br class="">-      LF->dump();<br class="">+      LF->print(errs());<br class="">+      fprintf(stderr, "\n");<br class=""> #endif<br class="">     }<br class="">   } else {<br class="">@@ -1307,7 +1308,8 @@ static void HandleExtern() {<br class="">     if (Function *F = P->Codegen()) {<br class=""> #ifndef MINIMAL_STDERR_OUTPUT<br class="">       fprintf(stderr, "Read extern: ");<br class="">-      F->dump();<br class="">+      F->print(errs());<br class="">+      fprintf(stderr, "\n");<br class=""> #endif<br class="">     }<br class="">   } else {<br class=""><br class="">Modified: llvm/trunk/lib/TableGen/TGParser.cpp<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/TableGen/TGParser.cpp?rev=293365&r1=293364&r2=293365&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/TableGen/TGParser.cpp?rev=293365&r1=293364&r2=293365&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/lib/TableGen/TGParser.cpp (original)<br class="">+++ llvm/trunk/lib/TableGen/TGParser.cpp Fri Jan 27 20:47:46 2017<br class="">@@ -54,6 +54,7 @@ struct SubMultiClassReference {<br class="">   void dump() const;<br class=""> };<br class=""><br class="">+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)<br class=""> LLVM_DUMP_METHOD void SubMultiClassReference::dump() const {<br class="">   errs() << "Multiclass:\n";<br class=""><br class="">@@ -63,6 +64,7 @@ LLVM_DUMP_METHOD void SubMultiClassRefer<br class="">   for (Init *TA : TemplateArgs)<br class="">     TA->dump();<br class=""> }<br class="">+#endif<br class=""><br class=""> } // end namespace llvm<br class=""><br class=""><br class="">Modified: llvm/trunk/utils/TableGen/SubtargetFeatureInfo.cpp<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/SubtargetFeatureInfo.cpp?rev=293365&r1=293364&r2=293365&view=diff" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/SubtargetFeatureInfo.cpp?rev=293365&r1=293364&r2=293365&view=diff</a><br class="">==============================================================================<br class="">--- llvm/trunk/utils/TableGen/SubtargetFeatureInfo.cpp (original)<br class="">+++ llvm/trunk/utils/TableGen/SubtargetFeatureInfo.cpp Fri Jan 27 20:47:46 2017<br class="">@@ -16,10 +16,11 @@<br class=""><br class=""> using namespace llvm;<br class=""><br class="">-void SubtargetFeatureInfo::dump() const {<br class="">-  errs() << getEnumName() << " " << Index << "\n";<br class="">-  TheDef->dump();<br class="">+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)<br class="">+LLVM_DUMP_METHOD void SubtargetFeatureInfo::dump() const {<br class="">+  errs() << getEnumName() << " " << Index << "\n" << *TheDef;<br class=""> }<br class="">+#endif<br class=""><br class=""> std::vector<std::pair<Record *, SubtargetFeatureInfo>><br class=""> SubtargetFeatureInfo::getAll(const RecordKeeper &Records) {<br class=""><br class=""><br class="">_______________________________________________<br class="">llvm-commits mailing list<br class=""><a href="mailto:llvm-commits@lists.llvm.org" class="">llvm-commits@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits<br class=""></div></div></blockquote></div><br class=""></div></body></html>