From 979d9b7a5740f627dc8b8ea4f98d81f10f95eb6a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 10 Sep 2002 00:39:05 +0000 Subject: [PATCH] Write most of the isa, cast, dyn_cast section. It's not done yet though. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3639 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/ProgrammersManual.html | 76 ++++++++++++++++++++++++++++++++----- 1 file changed, 66 insertions(+), 10 deletions(-) diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html index 20340c29812..07675ab9d4d 100644 --- a/docs/ProgrammersManual.html +++ b/docs/ProgrammersManual.html @@ -187,7 +187,68 @@ to write maintainable code more than where to put your curly braces.

The isa<>, cast<> and dyn_cast<> templates


Finding call sites: a slightly @@ -420,7 +477,6 @@ And the actual code is (remember, since we're writing a has to override the runOnFunction method...):
-
 Function* targetFunc = ...;
 
 class OurFunctionPass : public FunctionPass {
@@ -430,7 +486,7 @@ class OurFunctionPass : public FunctionPass {
     virtual runOnFunction(Function& F) {
  	for(Function::iterator b = F.begin(), be = F.end(); b != be; ++b) {
  	    for(BasicBlock::iterator i = b->begin(); ie = b->end(); i != ie; ++i) {
- 		if (CallInst* callInst = dyn_cast<CallInst>(&*inst)) {
+ 		if (CallInst* callInst = dyn_cast<CallInst>(&*inst)) {
  		    // we know we've encountered a call instruction, so we
  		    // need to determine if it's a call to the
 	            // function pointed to by m_func or not.
@@ -1296,6 +1352,6 @@ pointer to the parent Function.
 Chris Lattner
 
 
-Last modified: Mon Sep  9 14:56:55 CDT 2002
+Last modified: Mon Sep  9 19:38:23 CDT 2002
 
 
-- 
2.34.1