diff options
author | Djordje Todorovic <djordje.todorovic@syrmia.com> | 2020-03-09 11:02:35 +0100 |
---|---|---|
committer | Djordje Todorovic <djordje.todorovic@syrmia.com> | 2020-03-09 12:12:44 +0100 |
commit | c15c68abdc6f1afece637bdedba808676191a8e6 (patch) | |
tree | ac1e7e4608a0a0dd0ec838f88607525c02194f76 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 59a960b83c2d1559f31e1dd75728dd24fae2f68c (diff) | |
download | llvm-c15c68abdc6f1afece637bdedba808676191a8e6.zip llvm-c15c68abdc6f1afece637bdedba808676191a8e6.tar.gz llvm-c15c68abdc6f1afece637bdedba808676191a8e6.tar.bz2 |
[CallSiteInfo] Enable the call site info only for -g + optimizations
Emit call site info only in the case of '-g' + 'O>0' level.
Differential Revision: https://reviews.llvm.org/D75175
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index d73417a..b00907f 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -858,7 +858,7 @@ MachineFunction::getCallSiteInfo(const MachineInstr *MI) { assert(MI->isCandidateForCallSiteEntry() && "Call site info refers only to call (MI) candidates"); - if (!Target.Options.EnableDebugEntryValues) + if (!Target.Options.EmitCallSiteInfo) return CallSitesInfo.end(); return CallSitesInfo.find(MI); } |