[MachineOutliner][NFC] Move debug info emission to createOutlinedFunction
authorJessica Paquette <jpaquette@apple.com>
Thu, 20 Sep 2018 18:53:53 +0000 (18:53 +0000)
committerJessica Paquette <jpaquette@apple.com>
Thu, 20 Sep 2018 18:53:53 +0000 (18:53 +0000)
commitcc06a782baa9fcabc5e10b42e23e06d6018cc429
tree3f113d710165a135e39fbbb3e16247909ca7f458
parent77beee413648b117491eb9bd184ba99daee95667
[MachineOutliner][NFC] Move debug info emission to createOutlinedFunction

When you create an outlined function, you know everything you need to know
to decide if debug info should be created. If we emit debug info in
createOutlinedFunction, then we don't need to keep track of every IR function
we create.

llvm-svn: 342677
llvm/lib/CodeGen/MachineOutliner.cpp