OSDN Git Service

Feature generic option to setup start/stop-after/before
authorQuentin Colombet <qcolombet@apple.com>
Sat, 1 Apr 2017 01:21:24 +0000 (01:21 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Sat, 1 Apr 2017 01:21:24 +0000 (01:21 +0000)
commit79114cd2fa27bb2dd0aa60e91e823e684248d13a
tree38c8d3e4f6468dfc5fa0564dcd97dda4830a233b
parent61a230e3a016fdc84f30b6744552bcca6a82865c
Feature generic option to setup start/stop-after/before

This patch refactors the code used in llc such that all the users of the
addPassesToEmitFile API have access to a homogeneous way of handling
start/stop-after/before options right out of the box.

Previously each user would have needed to duplicate this logic and set
up its own options.

NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299282 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetMachine.h
lib/Target/TargetMachine.cpp
test/CodeGen/Generic/llc-start-stop.ll
tools/llc/llc.cpp