diff options
author | Andrew Trick <atrick@apple.com> | 2013-01-11 17:28:14 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2013-01-11 17:28:14 +0000 |
commit | a125cacf7d154d0e5cad47f011e619e45517c839 (patch) | |
tree | 421d5aae57cacb8ff77417cb3ad8338338c59640 /include/llvm/Analysis/CallPrinter.h | |
parent | dced3cdb0408f0802db332453a1e9c69c5fea70c (diff) | |
download | external_llvm-a125cacf7d154d0e5cad47f011e619e45517c839.zip external_llvm-a125cacf7d154d0e5cad47f011e619e45517c839.tar.gz external_llvm-a125cacf7d154d0e5cad47f011e619e45517c839.tar.bz2 |
Added -view-callgraph module pass.
-dot-callgraph similarly follows a standard module pass pattern.
Patch by Speziale Ettore!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172220 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/CallPrinter.h')
-rw-r--r-- | include/llvm/Analysis/CallPrinter.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/llvm/Analysis/CallPrinter.h b/include/llvm/Analysis/CallPrinter.h new file mode 100644 index 0000000..5f5d160 --- /dev/null +++ b/include/llvm/Analysis/CallPrinter.h @@ -0,0 +1,27 @@ +//===-- CallPrinter.h - Call graph printer external interface ----*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines external functions that can be called to explicitly +// instantiate the call graph printer. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_ANALYSIS_CALLPRINTER_H +#define LLVM_ANALYSIS_CALLPRINTER_H + +namespace llvm { + + class ModulePass; + + ModulePass *createCallGraphViewerPass(); + ModulePass *createCallGraphPrinterPass(); + +} // end namespace llvm + +#endif |