summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-04-26 16:27:53 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-04-26 16:27:53 +0000
commit21e232501a9d5ace29187b20a211ca73b09a1c75 (patch)
tree1432ba9d53d16778ade2aa49bae3ff876ba4a368
parentc6e2d8a2ffc04084dcf4a96e56aca155856aed92 (diff)
downloadllvm-21e232501a9d5ace29187b20a211ca73b09a1c75.tar.gz
llvm-21e232501a9d5ace29187b20a211ca73b09a1c75.tar.bz2
llvm-21e232501a9d5ace29187b20a211ca73b09a1c75.tar.xz
Because I like being able to instantiate the cfgprinter from external projects,
this header file is born. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13176 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Analysis/CFGPrinter.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/llvm/Analysis/CFGPrinter.h b/include/llvm/Analysis/CFGPrinter.h
new file mode 100644
index 0000000000..fb3fbdda79
--- /dev/null
+++ b/include/llvm/Analysis/CFGPrinter.h
@@ -0,0 +1,24 @@
+//===-- CFGPrinter.h - CFG printer external interface ------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file was developed by the LLVM research group and 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 CFG printer.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_ANALYSIS_CFGPRINTER_H
+#define LLVM_ANALYSIS_CFGPRINTER_H
+
+namespace llvm {
+ class FunctionPass;
+ FunctionPass *createCFGPrinterPass ();
+ FunctionPass *createCFGOnlyPrinterPass ();
+} // End llvm namespace
+
+#endif