Core: Handle duplicate symbols in AddLabelSymbol
This commit is contained in:
parent
72e6ee1a2b
commit
f63244cfa4
|
@ -900,9 +900,16 @@ void CX86Ops::AddLabelSymbol(const asmjit::Label & Label, const char * Symbol)
|
||||||
{
|
{
|
||||||
NumberSymbolMap::iterator itr = m_LabelSymbols.find(Label.id());
|
NumberSymbolMap::iterator itr = m_LabelSymbols.find(Label.id());
|
||||||
if (itr != m_LabelSymbols.end())
|
if (itr != m_LabelSymbols.end())
|
||||||
|
{
|
||||||
|
if (strcmp(itr->second.Symbol.c_str(), Symbol) == 0)
|
||||||
|
{
|
||||||
|
itr->second.Count += 2;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
__debugbreak();
|
__debugbreak();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_LabelSymbols.emplace(std::make_pair(Label.id(), NumberSymbol{Symbol, 2}));
|
m_LabelSymbols.emplace(std::make_pair(Label.id(), NumberSymbol{Symbol, 2}));
|
||||||
|
|
Loading…
Reference in New Issue