[llvm] r325157 - Update examples for API change. NFC.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 14 11:23:28 PST 2018


Author: rafael
Date: Wed Feb 14 11:23:27 2018
New Revision: 325157

URL: http://llvm.org/viewvc/llvm-project?rev=325157&view=rev
Log:
Update examples for API change. NFC.

Modified:
    llvm/trunk/examples/BrainF/BrainFDriver.cpp
    llvm/trunk/examples/ModuleMaker/ModuleMaker.cpp

Modified: llvm/trunk/examples/BrainF/BrainFDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/BrainF/BrainFDriver.cpp?rev=325157&r1=325156&r2=325157&view=diff
==============================================================================
--- llvm/trunk/examples/BrainF/BrainFDriver.cpp (original)
+++ llvm/trunk/examples/BrainF/BrainFDriver.cpp Wed Feb 14 11:23:27 2018
@@ -171,7 +171,7 @@ int main(int argc, char **argv) {
     // is unmanageable because stdout linkage name depends on stdlib implementation.
     fflush(stdout);
   } else {
-    WriteBitcodeToFile(Mod.get(), *out);
+    WriteBitcodeToFile(*Mod, *out);
   }
 
   //Clean up

Modified: llvm/trunk/examples/ModuleMaker/ModuleMaker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/ModuleMaker/ModuleMaker.cpp?rev=325157&r1=325156&r2=325157&view=diff
==============================================================================
--- llvm/trunk/examples/ModuleMaker/ModuleMaker.cpp (original)
+++ llvm/trunk/examples/ModuleMaker/ModuleMaker.cpp Wed Feb 14 11:23:27 2018
@@ -62,7 +62,7 @@ int main() {
   BB->getInstList().push_back(ReturnInst::Create(Context, Add));
 
   // Output the bitcode file to stdout
-  WriteBitcodeToFile(M, outs());
+  WriteBitcodeToFile(*M, outs());
 
   // Delete the module and all of its contents.
   delete M;




More information about the llvm-commits mailing list