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)
commitffe3053a66ff0295218abe7a3ac5015a70b192cf
treed2f8c6b378124119348d6f329b607e06aa616554
parent63b6df4f05f0c099fd8c361af24a99709af8c3db
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

llvm-svn: 299282
llvm/include/llvm/Target/TargetMachine.h
llvm/lib/Target/TargetMachine.cpp
llvm/test/CodeGen/Generic/llc-start-stop.ll
llvm/tools/llc/llc.cpp