aboutsummaryrefslogtreecommitdiff
path: root/lib/output.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-08-21 11:53:19 +0300
committerMihai Bazon <mihai@bazon.net>2012-08-21 12:07:34 +0300
commit159333f4c51e70a758160975a190646ff55bf66b (patch)
tree468f657831689cd0299e337e409e4f8e471ce36d /lib/output.js
parent99456c6156f8a05734a82be97348ace72aa1ee2a (diff)
downloadtracifyjs-159333f4c51e70a758160975a190646ff55bf66b.tar.gz
tracifyjs-159333f4c51e70a758160975a190646ff55bf66b.zip
warn about unreferenced symbols
Diffstat (limited to 'lib/output.js')
-rw-r--r--lib/output.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/output.js b/lib/output.js
index e6b2dd13..0d6518df 100644
--- a/lib/output.js
+++ b/lib/output.js
@@ -806,11 +806,8 @@ function OutputStream(options) {
output.print_name(self.name);
});
DEFPRINT(AST_SymbolDeclaration, function(self, output){
- if (self.uniq) {
- self.uniq.print(output);
- } else {
- output.print_name(self.mangled_name || self.name);
- }
+ var def = self.definition();
+ output.print_name(def.mangled_name || def.name);
});
DEFPRINT(AST_SymbolRef, function(self, output){
var def = self.symbol;