diff --git a/src/plugins/compilerexplorer/api/compile.h b/src/plugins/compilerexplorer/api/compile.h index 618af39a246..0f0493739d2 100644 --- a/src/plugins/compilerexplorer/api/compile.h +++ b/src/plugins/compilerexplorer/api/compile.h @@ -226,7 +226,7 @@ struct CompilerResult struct CompileResult : CompilerResult { - struct Asm + struct AssemblyLine { // A part of the asm that is a (hyper)link to a label (the name references labelDefinitions) struct Label @@ -246,34 +246,68 @@ struct CompileResult : CompilerResult label.range.endCol = object["range"]["endCol"].toInt(); return label; } + + bool operator==(const Label &other) const + { + return name == other.name && range.startCol == other.range.startCol + && range.endCol == other.range.endCol; + } + bool operator!=(const Label &other) const { return !(*this == other); } }; QList