diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2015-07-08 01:00:31 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2015-07-08 01:00:31 +0000 |
commit | f50daedfc749615b59c25b116bb445d16b332b47 (patch) | |
tree | 80b58bde78c5873eac975d28bccba83f99cefe24 /llvm/lib/CodeGen/Passes.cpp | |
parent | bc068586ac2807bfb4030bd9c4789b6a12359a9c (diff) | |
download | bcm5719-llvm-f50daedfc749615b59c25b116bb445d16b332b47.tar.gz bcm5719-llvm-f50daedfc749615b59c25b116bb445d16b332b47.zip |
Redirect DataLayout from TargetMachine to Module in SjLjEHPrepare
Summary:
This change is part of a series of commits dedicated to have a single
DataLayout during compilation by using always the one owned by the
module.
Reviewers: echristo
Subscribers: yaron.keren, rafael, llvm-commits
Differential Revision: http://reviews.llvm.org/D11009
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 241654
Diffstat (limited to 'llvm/lib/CodeGen/Passes.cpp')
-rw-r--r-- | llvm/lib/CodeGen/Passes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/Passes.cpp b/llvm/lib/CodeGen/Passes.cpp index 0821e6ad158..024d166a498 100644 --- a/llvm/lib/CodeGen/Passes.cpp +++ b/llvm/lib/CodeGen/Passes.cpp @@ -424,7 +424,7 @@ void TargetPassConfig::addPassesToHandleExceptions() { // removed from the parent invoke(s). This could happen when a landing // pad is shared by multiple invokes and is also a target of a normal // edge from elsewhere. - addPass(createSjLjEHPreparePass(TM)); + addPass(createSjLjEHPreparePass()); // FALLTHROUGH case ExceptionHandling::DwarfCFI: case ExceptionHandling::ARM: |