[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineDebugInfo.h

Jim Laskey jlaskey at apple.com
Tue Feb 28 12:15:20 PST 2006



Changes in directory llvm/include/llvm/CodeGen:

MachineDebugInfo.h updated: 1.21 -> 1.22
---
Log message:

Add const, volatile, restrict support.
Add array of debug descriptor support.


---
Diffs of the changes:  (+15 -3)

 MachineDebugInfo.h |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)


Index: llvm/include/llvm/CodeGen/MachineDebugInfo.h
diff -u llvm/include/llvm/CodeGen/MachineDebugInfo.h:1.21 llvm/include/llvm/CodeGen/MachineDebugInfo.h:1.22
--- llvm/include/llvm/CodeGen/MachineDebugInfo.h:1.21	Fri Feb 24 10:46:40 2006
+++ llvm/include/llvm/CodeGen/MachineDebugInfo.h	Tue Feb 28 14:15:07 2006
@@ -66,7 +66,10 @@
   DI_TAG_basictype,
   DI_TAG_typedef,
   DI_TAG_pointer,
-  DI_TAG_reference
+  DI_TAG_reference,
+  DI_TAG_const,
+  DI_TAG_volatile,
+  DI_TAG_restrict
 };
 
 //===----------------------------------------------------------------------===//
@@ -90,6 +93,7 @@
   virtual void Apply(std::string &Field) = 0;
   virtual void Apply(DebugInfoDesc *&Field) = 0;
   virtual void Apply(GlobalVariable *&Field) = 0;
+  virtual void Apply(std::vector<DebugInfoDesc *> &Field) = 0;
 };
 
 //===----------------------------------------------------------------------===//
@@ -148,7 +152,6 @@
 #endif
 };
 
-
 //===----------------------------------------------------------------------===//
 /// AnchorDesc - Descriptors of this class act as markers for identifying
 /// descriptors of certain groups.
@@ -371,7 +374,16 @@
   static bool classof(const DerivedTypeDesc *)  { return true; }
   static bool classof(const DebugInfoDesc *D) {
     unsigned T =  D->getTag();
-    return T == DI_TAG_typedef || T == DI_TAG_pointer || T == DI_TAG_reference;
+    switch (T) {
+    case DI_TAG_typedef:
+    case DI_TAG_pointer:
+    case DI_TAG_reference:
+    case DI_TAG_const:
+    case DI_TAG_volatile:
+    case DI_TAG_restrict:
+      return true;
+    default: return false;
+    }
   }
   
   /// ApplyToFields - Target the visitor to the fields of the  DerivedTypeDesc.






More information about the llvm-commits mailing list