mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-24 20:30:06 +00:00
Eliminate direct access to TargetData structure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5156 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3b24559df0
commit
c93489bf87
@ -201,7 +201,7 @@ main(int argc, char **argv)
|
||||
if (Opt->getNormalCtor())
|
||||
Passes.add(Opt->getNormalCtor()());
|
||||
else if (Opt->getDataCtor())
|
||||
Passes.add(Opt->getDataCtor()(Target.DataLayout));
|
||||
Passes.add(Opt->getDataCtor()(Target.getTargetData()));
|
||||
else if (Opt->getTargetCtor())
|
||||
Passes.add(Opt->getTargetCtor()(Target));
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user