diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-08-14 00:24:56 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-08-14 00:24:56 +0000 |
commit | 3b20b04072702dccca35ba4b339f6aa7cdae845d (patch) | |
tree | 6562a9d2eac39fec2c3a938b72b0f0ddd572d3d4 /llvm/examples/ExceptionDemo/ExceptionDemo.cpp | |
parent | bf143e2a202010bfbb03d6630235d46e1c57808f (diff) | |
download | bcm5719-llvm-3b20b04072702dccca35ba4b339f6aa7cdae845d.tar.gz bcm5719-llvm-3b20b04072702dccca35ba4b339f6aa7cdae845d.zip |
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.
llvm-svn: 244994
Diffstat (limited to 'llvm/examples/ExceptionDemo/ExceptionDemo.cpp')
-rw-r--r-- | llvm/examples/ExceptionDemo/ExceptionDemo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/examples/ExceptionDemo/ExceptionDemo.cpp b/llvm/examples/ExceptionDemo/ExceptionDemo.cpp index 81337c4823b..75140967fa8 100644 --- a/llvm/examples/ExceptionDemo/ExceptionDemo.cpp +++ b/llvm/examples/ExceptionDemo/ExceptionDemo.cpp @@ -971,7 +971,7 @@ void generateIntegerPrint(llvm::LLVMContext &context, 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 |