summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r--src/passes/Print.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index 0533b9786..106beac39 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -2516,7 +2516,15 @@ void PrintSExpression::printDebugLocation(
} else {
auto fileName = currModule->debugInfoFileNames[location->fileIndex];
o << ";;@ " << fileName << ":" << location->lineNumber << ":"
- << location->columnNumber << '\n';
+ << location->columnNumber;
+
+ if (location->symbolNameIndex) {
+ auto symbolName =
+ currModule->debugInfoSymbolNames[*(location->symbolNameIndex)];
+ o << ":" << symbolName;
+ }
+
+ o << '\n';
}
doIndent(o, indent);
}