diff options
author | Eric Christopher <echristo@gmail.com> | 2015-02-13 22:23:04 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-02-13 22:23:04 +0000 |
commit | e8dbfe1cf80fb43dba504890a9c26200036997a9 (patch) | |
tree | d862d6343a5b05560de78f63103783189ad04056 /llvm/lib/Target/PowerPC/PPCISelLowering.cpp | |
parent | a4ae2131935725fbe80bc27cbf447f4bc1d8adbb (diff) | |
download | bcm5719-llvm-e8dbfe1cf80fb43dba504890a9c26200036997a9.tar.gz bcm5719-llvm-e8dbfe1cf80fb43dba504890a9c26200036997a9.zip |
Stash the TargetMachine on the subtarget so we can access it later.
Clean up a subtarget function that has it passed in while we're at it.
llvm-svn: 229164
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index d33eacb291e..0765638dce2 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -1577,7 +1577,7 @@ static bool GetLabelAccessInfo(const TargetMachine &TM, // If this is a reference to a global value that requires a non-lazy-ptr, make // sure that instruction lowering adds it. - if (GV && Subtarget.hasLazyResolverStub(GV, TM)) { + if (GV && Subtarget.hasLazyResolverStub(GV)) { HiOpFlags |= PPCII::MO_NLP_FLAG; LoOpFlags |= PPCII::MO_NLP_FLAG; |