Eliminate direct access to TargetData structure

llvm-svn: 5156
This commit is contained in:
Chris Lattner 2002-12-28 20:00:00 +00:00
parent 14e00852c5
commit 4b2c56d87f

View File

@ -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