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:
Chris Lattner 2002-12-28 20:00:00 +00:00
parent 3b24559df0
commit c93489bf87

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