mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
If we see that we're emitting code for a function that doesn't have
any lexical scopes then go ahead and turn on DW_AT_ranges for the compile unit since we would be claiming to describe in the CU a range for which we don't have information in the CU otherwise. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203969 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1462,8 +1462,10 @@ void DwarfDebug::beginFunction(const MachineFunction *MF) {
|
||||
// Grab the lexical scopes for the function, if we don't have any of those
|
||||
// then we're not going to be able to do anything.
|
||||
LScopes.initialize(*MF);
|
||||
if (LScopes.empty())
|
||||
if (LScopes.empty()) {
|
||||
UsedNonDefaultText = true;
|
||||
return;
|
||||
}
|
||||
|
||||
assert(UserVariables.empty() && DbgValues.empty() && "Maps weren't cleaned");
|
||||
|
||||
|
Reference in New Issue
Block a user