[llvm-commits] CVS: reopt/lib/Mapping/getLLVMinfo.cpp

Brian Gaeke gaeke at gally.cs.uiuc.edu
Tue Feb 10 13:18:06 PST 2004


Changes in directory reopt/lib/Mapping:

getLLVMinfo.cpp updated: 1.24 -> 1.25

---
Log message:

Clarify comment for getReverseBBMap().


---
Diffs of the changes:  (+5 -4)

Index: reopt/lib/Mapping/getLLVMinfo.cpp
diff -u reopt/lib/Mapping/getLLVMinfo.cpp:1.24 reopt/lib/Mapping/getLLVMinfo.cpp:1.25
--- reopt/lib/Mapping/getLLVMinfo.cpp:1.24	Mon Jan  5 14:13:37 2004
+++ reopt/lib/Mapping/getLLVMinfo.cpp	Tue Feb 10 13:17:25 2004
@@ -147,11 +147,12 @@
 }
 
 /// getReverseBBMap - Look up the given 64-bit address ADDR in the
-/// reverse BB map for the Module. If it is found, return true, and
-/// set BB to the BasicBlock that corresponds to it. Otherwise, return
-/// false.
+/// map for the given Module which maps machine-code memory addresses back to
+/// their corresponding LLVM BasicBlocks.  If ADDR is found in the map,
+/// return true, and set BB to the BasicBlock that corresponds to it.
+/// Otherwise, return false, and leave BB untouched.
 ///
-bool getReverseBBMap(uint64_t addr, Module *M, BasicBlock* &bb){
+bool getReverseBBMap(uint64_t addr, Module *M, BasicBlock* &bb) {
   static Module *lastUsedModule = NULL;
   if (lastUsedModule != M) {
     // First time we see a given Module, create the table we use to





More information about the llvm-commits mailing list