summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-08 21:52:58 +0000
committerChris Lattner <sabre@nondot.org>2002-04-08 21:52:58 +0000
commit71dfc02de9b972470f141cb4119eb462d3ef3b9b (patch)
tree2f0da2693a71917148e6ad0c23abde56239760b9 /llvm
parentfb7aae57986ab86ace5484d8cbaf4a1d3eb90306 (diff)
downloadbcm5719-llvm-71dfc02de9b972470f141cb4119eb462d3ef3b9b.tar.gz
bcm5719-llvm-71dfc02de9b972470f141cb4119eb462d3ef3b9b.zip
s/Method/Function
Trim #includes llvm-svn: 2170
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Assembly/PrintModulePass.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/llvm/include/llvm/Assembly/PrintModulePass.h b/llvm/include/llvm/Assembly/PrintModulePass.h
index 181ce98227e..7cbfc618994 100644
--- a/llvm/include/llvm/Assembly/PrintModulePass.h
+++ b/llvm/include/llvm/Assembly/PrintModulePass.h
@@ -11,7 +11,6 @@
#define LLVM_ASSEMBLY_PRINTMODULEPASS_H
#include "llvm/Pass.h"
-#include "llvm/Assembly/Writer.h"
#include <iostream>
class PrintModulePass : public Pass {
@@ -32,25 +31,25 @@ public:
}
};
-class PrintMethodPass : public MethodPass {
+class PrintFunctionPass : public MethodPass {
std::string Banner; // String to print before each method
std::ostream *Out; // ostream to print on
bool DeleteStream; // Delete the ostream in our dtor?
public:
- inline PrintMethodPass(const std::string &B, std::ostream *o = &std::cout,
- bool DS = false)
+ inline PrintFunctionPass(const std::string &B, std::ostream *o = &std::cout,
+ bool DS = false)
: Banner(B), Out(o), DeleteStream(DS) {
}
- inline ~PrintMethodPass() {
+ inline ~PrintFunctionPass() {
if (DeleteStream) delete Out;
}
// runOnMethod - This pass just prints a banner followed by the method as
// it's processed.
//
- bool runOnMethod(Method *M) {
- (*Out) << Banner << M;
+ bool runOnMethod(Function *F) {
+ (*Out) << Banner << F;
return false;
}
};
OpenPOWER on IntegriCloud