[llvm-commits] CVS: llvm/lib/Debugger/ProgramInfo.cpp

Reid Spencer reid at x10sys.com
Thu Nov 2 12:27:04 PST 2006



Changes in directory llvm/lib/Debugger:

ProgramInfo.cpp updated: 1.18 -> 1.19
---
Log message:

For PR786: http://llvm.org/PR786 :
Turn on -Wunused and -Wno-unused-parameter. Clean up most of the resulting
fall out by removing unused variables. Remaining warnings have to do with
unused functions (I didn't want to delete code without review) and unused
variables in generated code. Maintainers should clean up the remaining 
issues when they see them. All changes pass DejaGnu tests and Olden.


---
Diffs of the changes:  (+1 -1)

 ProgramInfo.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Debugger/ProgramInfo.cpp
diff -u llvm/lib/Debugger/ProgramInfo.cpp:1.18 llvm/lib/Debugger/ProgramInfo.cpp:1.19
--- llvm/lib/Debugger/ProgramInfo.cpp:1.18	Fri Oct 20 02:07:24 2006
+++ llvm/lib/Debugger/ProgramInfo.cpp	Thu Nov  2 14:25:49 2006
@@ -61,7 +61,7 @@
       
       // If we found a stop point, check to see if it is earlier than what we
       // already have.  If so, remember it.
-      if (const Function *F = CI->getCalledFunction())
+      if (CI->getCalledFunction())
         if (const DbgStopPointInst *SPI = dyn_cast<DbgStopPointInst>(CI)) {
           unsigned CurLineNo = SPI->getLine();
           unsigned CurColNo = SPI->getColumn();






More information about the llvm-commits mailing list