mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-24 13:06:56 +00:00
if some functions don't have debug info, we were outputing the same label at the start of each of those functions. This makes assemblers unhappy
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49176 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a150ffeada
commit
51dd8c9224
@ -2720,8 +2720,11 @@ public:
|
||||
|
||||
// Emit label for the implicitly defined dbg.stoppoint at the start of
|
||||
// the function.
|
||||
const SourceLineInfo &LineInfo = MMI->getSourceLines()[0];
|
||||
Asm->printLabel(LineInfo.getLabelID());
|
||||
const std::vector<SourceLineInfo> &LineInfos = MMI->getSourceLines();
|
||||
if (!LineInfos.empty()) {
|
||||
const SourceLineInfo &LineInfo = LineInfos[0];
|
||||
Asm->printLabel(LineInfo.getLabelID());
|
||||
}
|
||||
}
|
||||
|
||||
/// EndFunction - Gather and emit post-function debug information.
|
||||
|
Loading…
Reference in New Issue
Block a user