mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-20 10:42:36 +00:00
Eliminate direct access to TargetData structure
llvm-svn: 5156
This commit is contained in:
parent
14e00852c5
commit
4b2c56d87f
@ -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…
x
Reference in New Issue
Block a user