diff options
author | Chris Lattner <sabre@nondot.org> | 2002-02-12 21:07:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-02-12 21:07:25 +0000 |
commit | 60a6591d83e82990bd8097a08f4d9e51dc63f7cb (patch) | |
tree | 833b7f0a2cafb5fc45f410f40d90ffee44861794 /llvm/lib/ExecutionEngine | |
parent | 80de23155ae2e9b9f01a6ba5c42b2bb2c52f9406 (diff) | |
download | bcm5719-llvm-60a6591d83e82990bd8097a08f4d9e51dc63f7cb.tar.gz bcm5719-llvm-60a6591d83e82990bd8097a08f4d9e51dc63f7cb.zip |
Method.h no longer includes BasicBlock.h
Method::inst_* is now in llvm/Support/InstIterator.h
GraphTraits specializations for BasicBlock and Methods are now in llvm/Support/CFG.h
llvm-svn: 1746
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | 10 | ||||
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Interpreter.h | 1 |
2 files changed, 7 insertions, 4 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp index 0fad82964d2..9f6317fd393 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -1034,10 +1034,12 @@ MethodInfo::MethodInfo(Method *M) : Annotation(MethodInfoAID) { // Iterate over all of the instructions... unsigned InstNum = 0; - for (Method::inst_iterator MI = M->inst_begin(), ME = M->inst_end(); - MI != ME; ++MI) { - Instruction *I = *MI; // For each instruction... - I->addAnnotation(new InstNumber(++InstNum, getValueSlot(I))); // Add Annote + for (Method::iterator MI = M->begin(), ME = M->end(); MI != ME; ++MI) { + BasicBlock *BB = *MI; + for (BasicBlock::iterator II = BB->begin(), IE = BB->end(); II != IE; ++II){ + Instruction *I = *II; // For each instruction... Add Annote + I->addAnnotation(new InstNumber(++InstNum, getValueSlot(I))); + } } } diff --git a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h index ffe10015978..050b7d332d2 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h +++ b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h @@ -13,6 +13,7 @@ #include "llvm/Module.h" #include "llvm/Method.h" +#include "llvm/BasicBlock.h" #include "Support/DataTypes.h" #include "llvm/Assembly/CachedWriter.h" |