[llvm-commits] CVS: llvm/include/llvm/Assembly/AsmAnnotationWriter.h

Reid Spencer reid at x10sys.com
Sun May 15 09:13:23 PDT 2005



Changes in directory llvm/include/llvm/Assembly:

AsmAnnotationWriter.h updated: 1.4 -> 1.5
---
Log message:

Some cleanups for compilation with GCC 4.0.0 to remove warnings:
* Use C++ style casts, not C style casts
* Abstract base classes should have virtual destructor.


---
Diffs of the changes:  (+2 -0)

 AsmAnnotationWriter.h |    2 ++
 1 files changed, 2 insertions(+)


Index: llvm/include/llvm/Assembly/AsmAnnotationWriter.h
diff -u llvm/include/llvm/Assembly/AsmAnnotationWriter.h:1.4 llvm/include/llvm/Assembly/AsmAnnotationWriter.h:1.5
--- llvm/include/llvm/Assembly/AsmAnnotationWriter.h:1.4	Thu Apr 21 15:19:05 2005
+++ llvm/include/llvm/Assembly/AsmAnnotationWriter.h	Sun May 15 11:13:11 2005
@@ -27,6 +27,8 @@
 
 struct AssemblyAnnotationWriter {
 
+  virtual ~AssemblyAnnotationWriter();
+
   // emitFunctionAnnot - This may be implemented to emit a string right before
   // the start of a function.
   virtual void emitFunctionAnnot(const Function *F, std::ostream &OS) {}






More information about the llvm-commits mailing list