bpf: Use the getSubtarget call off of the MachineFunction rather than the TargetMachine
authorAlexei Starovoitov <alexei.starovoitov@gmail.com>
Mon, 2 Feb 2015 21:24:27 +0000 (21:24 +0000)
committerAlexei Starovoitov <alexei.starovoitov@gmail.com>
Mon, 2 Feb 2015 21:24:27 +0000 (21:24 +0000)
commit8ea8f377aa0b4fcde9d1187e8aae4c2b355a0623
treedb392f786750a5ffb1e62d4b8391bfd540f1d29e
parent62d535ff3c2a73a95d0e2bdb5d5e8cb5c4002b87
bpf: Use the getSubtarget call off of the MachineFunction rather than the TargetMachine

Summary:
Hi Eric,

this patch cleans up the layering violation that you're fixing across backends.
Anything else I need to fix on bpf backend side?

Thanks

Reviewers: echristo

Reviewed By: echristo

Differential Revision: http://reviews.llvm.org/D7355

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227865 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/BPF/BPFISelLowering.cpp