summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-08-25 11:53:20 -0400
committerNick Mathewson <nickm@torproject.org>2015-08-25 11:53:20 -0400
commit1eb210637539ce71794ff49fc462c35511b8a141 (patch)
tree04183d1f943a115dc8d1f2a769849bae08b35b40 /scripts
parentf8a51068235cbc59fcb80efcc7f79b9b2689261d (diff)
downloadtor-1eb210637539ce71794ff49fc462c35511b8a141.tar.gz
tor-1eb210637539ce71794ff49fc462c35511b8a141.zip
Document callgraph analysis code
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/maint/generate_callgraph.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/maint/generate_callgraph.sh b/scripts/maint/generate_callgraph.sh
index 97330cc949..c6b33c0aea 100755
--- a/scripts/maint/generate_callgraph.sh
+++ b/scripts/maint/generate_callgraph.sh
@@ -8,6 +8,7 @@ mkdir -p callgraph/src/or
mkdir -p callgraph/src/tools
for fn in $C_FILES; do
+ echo $fn
clang $CFLAGS -S -emit-llvm -fno-inline -o - $fn | \
- opt -analyze -print-callgraph 2> "callgraph/${fn}allgraph"
+ opt -analyze -print-callgraph >/dev/null 2> "callgraph/${fn}allgraph"
done