aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-28 20:00:00 +0000
committerChris Lattner <sabre@nondot.org>2002-12-28 20:00:00 +0000
commitc93489bf878070d3be5331177f7e4451a2c34841 (patch)
treea4032f954ee44d4eb6f1674d1ee1b846437c8da2 /tools
parent3b24559df0cba5e12f70ab6ccc7d246cfc97d919 (diff)
downloadexternal_llvm-c93489bf878070d3be5331177f7e4451a2c34841.zip
external_llvm-c93489bf878070d3be5331177f7e4451a2c34841.tar.gz
external_llvm-c93489bf878070d3be5331177f7e4451a2c34841.tar.bz2
Eliminate direct access to TargetData structure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5156 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llc/llc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index 7987239..61b7306 100644
--- a/tools/llc/llc.cpp
+++ b/tools/llc/llc.cpp
@@ -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