We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 001fb1f commit 44aa4d7Copy full SHA for 44aa4d7
llvm/tools/dsymutil/SymbolMap.cpp
@@ -26,12 +26,8 @@ StringRef SymbolMapTranslator::operator()(StringRef Input) {
26
if (!Input.starts_with("__hidden#") && !Input.starts_with("___hidden#"))
27
return Input;
28
29
- bool MightNeedUnderscore = false;
30
StringRef Line = Input.drop_front(sizeof("__hidden#") - 1);
31
- if (Line[0] == '#') {
32
- Line = Line.drop_front();
33
- MightNeedUnderscore = true;
34
- }
+ bool MightNeedUnderscore = Line.consume_front("#");
35
36
std::size_t LineNumber = std::numeric_limits<std::size_t>::max();
37
Line.split('_').first.getAsInteger(10, LineNumber);
0 commit comments