diff options
author | Reid Kleckner <rnk@google.com> | 2019-11-13 15:33:12 -0800 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2019-11-13 15:36:58 -0800 |
commit | 364d1785a6e3f9b149cef29849e653abe5548cc2 (patch) | |
tree | 454fca8d56c3b6e2730f93da5ddb45a9adbd84c6 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 188d92b9470de71532ec58060cd75f913fd68e59 (diff) | |
download | bcm5719-llvm-364d1785a6e3f9b149cef29849e653abe5548cc2.tar.gz bcm5719-llvm-364d1785a6e3f9b149cef29849e653abe5548cc2.zip |
Sink MachineFunction private method out of line
This method is private and only called from this file and doesn't need
to be inline. Saves a TargetMachine.h include in MachineFunction.h, a
popular header. The include was introduced in 98603a8153086 despite the
forward decl of LLVMTargetMachine.
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 115aad3880f..b40f0b46bc1 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -830,6 +830,15 @@ try_next:; return FilterID; } +MachineFunction::CallSiteInfoMap::iterator +MachineFunction::getCallSiteInfo(const MachineInstr *MI) { + assert(MI->isCall() && "Call site info refers only to call instructions!"); + + if (!Target.Options.EnableDebugEntryValues) + return CallSitesInfo.end(); + return CallSitesInfo.find(MI); +} + void MachineFunction::moveCallSiteInfo(const MachineInstr *Old, const MachineInstr *New) { assert(New->isCall() && "Call site info refers only to call instructions!"); |