diff options
author | Djordje Todorovic <djordje.todorovic@rt-rk.com> | 2019-06-27 07:48:06 +0000 |
---|---|---|
committer | Djordje Todorovic <djordje.todorovic@rt-rk.com> | 2019-06-27 07:48:06 +0000 |
commit | a7cde103c18224f426e613b64ecb228c2154300f (patch) | |
tree | 235dce0d944171a2789b34c51d736035fe76982d /llvm/lib/CodeGen/MachineVerifier.cpp | |
parent | 41825040f62f03a69d1c1c1f77bf2fd7089ab0b7 (diff) | |
download | bcm5719-llvm-a7cde103c18224f426e613b64ecb228c2154300f.tar.gz bcm5719-llvm-a7cde103c18224f426e613b64ecb228c2154300f.zip |
[MachineFunction] Base support for call site info tracking
Add an attribute into the MachineFunction that tracks call site info.
([8/13] Introduce the debug entry values.)
Co-authored-by: Ananth Sowda <asowda@cisco.com>
Co-authored-by: Nikola Prica <nikola.prica@rt-rk.com>
Co-authored-by: Ivan Baev <ibaev@cisco.com>
Differential Revision: https://reviews.llvm.org/D61061
llvm-svn: 364506
Diffstat (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineVerifier.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp index b40594ffe55..63fd05b2ea2 100644 --- a/llvm/lib/CodeGen/MachineVerifier.cpp +++ b/llvm/lib/CodeGen/MachineVerifier.cpp @@ -2193,6 +2193,10 @@ void MachineVerifier::visitMachineFunctionAfter() { verifyLiveVariables(); if (LiveInts) verifyLiveIntervals(); + + for (auto CSInfo : MF->getCallSitesInfo()) + if (!CSInfo.first->isCall()) + report("Call site info referencing instruction that is not call", MF); } void MachineVerifier::verifyLiveVariables() { |