[llvm] r244994 - Fix up the ExceptionDemo for some API changes over the past <time>

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 13 17:24:56 PDT 2015


Author: dblaikie
Date: Thu Aug 13 19:24:56 2015
New Revision: 244994

URL: http://llvm.org/viewvc/llvm-project?rev=244994&view=rev
Log:
Fix up the ExceptionDemo for some API changes over the past <time>

This still doesn't build -Werror clean, but other than that it should at
least build.

Modified:
    llvm/trunk/examples/ExceptionDemo/ExceptionDemo.cpp

Modified: llvm/trunk/examples/ExceptionDemo/ExceptionDemo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/ExceptionDemo/ExceptionDemo.cpp?rev=244994&r1=244993&r2=244994&view=diff
==============================================================================
--- llvm/trunk/examples/ExceptionDemo/ExceptionDemo.cpp (original)
+++ llvm/trunk/examples/ExceptionDemo/ExceptionDemo.cpp Thu Aug 13 19:24:56 2015
@@ -971,7 +971,7 @@ void generateIntegerPrint(llvm::LLVMCont
 
   llvm::Value *cast = builder.CreateBitCast(stringVar,
                                             builder.getInt8PtrTy());
-  builder.CreateCall2(&printFunct, &toPrint, cast);
+  builder.CreateCall(&printFunct, {&toPrint, cast});
 }
 
 
@@ -1973,7 +1973,7 @@ int main(int argc, char *argv[]) {
     // Set up the optimizer pipeline.
     // Start with registering info about how the
     // target lays out data structures.
-    module->setDataLayout(*executionEngine->getDataLayout());
+    module->setDataLayout(executionEngine->getDataLayout());
 
     // Optimizations turned on
 #ifdef ADD_OPT_PASSES




More information about the llvm-commits mailing list