summaryrefslogtreecommitdiffstats
path: root/llvm/examples/ExceptionDemo
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-02-25 17:30:31 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-02-25 17:30:31 +0000
commit935125126c4ffde74ef3a82959fde69ee8c6b648 (patch)
treec8f13ff32afa704ca5ae5ad3faf4650f9ea2f4c2 /llvm/examples/ExceptionDemo
parent48f52e926d6e8273587f5befc997fc784b04855b (diff)
downloadbcm5719-llvm-935125126c4ffde74ef3a82959fde69ee8c6b648.tar.gz
bcm5719-llvm-935125126c4ffde74ef3a82959fde69ee8c6b648.zip
Make DataLayout a plain object, not a pass.
Instead, have a DataLayoutPass that holds one. This will allow parts of LLVM don't don't handle passes to also use DataLayout. llvm-svn: 202168
Diffstat (limited to 'llvm/examples/ExceptionDemo')
-rw-r--r--llvm/examples/ExceptionDemo/ExceptionDemo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/ExceptionDemo/ExceptionDemo.cpp b/llvm/examples/ExceptionDemo/ExceptionDemo.cpp
index d997cc55a9f..4b7023faef2 100644
--- a/llvm/examples/ExceptionDemo/ExceptionDemo.cpp
+++ b/llvm/examples/ExceptionDemo/ExceptionDemo.cpp
@@ -1976,7 +1976,7 @@ int main(int argc, char *argv[]) {
// Set up the optimizer pipeline.
// Start with registering info about how the
// target lays out data structures.
- fpm.add(new llvm::DataLayout(*executionEngine->getDataLayout()));
+ fpm.add(new llvm::DataLayoutPass(*executionEngine->getDataLayout()));
// Optimizations turned on
#ifdef ADD_OPT_PASSES
OpenPOWER on IntegriCloud