[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineDebugInfo.h
Jim Laskey
jlaskey at apple.com
Tue Mar 7 12:54:01 PST 2006
Changes in directory llvm/include/llvm/CodeGen:
MachineDebugInfo.h updated: 1.27 -> 1.28
---
Log message:
Switch to using a numeric id for anchors.
---
Diffs of the changes: (+14 -4)
MachineDebugInfo.h | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
Index: llvm/include/llvm/CodeGen/MachineDebugInfo.h
diff -u llvm/include/llvm/CodeGen/MachineDebugInfo.h:1.27 llvm/include/llvm/CodeGen/MachineDebugInfo.h:1.28
--- llvm/include/llvm/CodeGen/MachineDebugInfo.h:1.27 Fri Mar 3 09:06:56 2006
+++ llvm/include/llvm/CodeGen/MachineDebugInfo.h Tue Mar 7 14:53:47 2006
@@ -142,16 +142,18 @@
//===----------------------------------------------------------------------===//
/// AnchorDesc - Descriptors of this class act as markers for identifying
/// descriptors of certain groups.
+class AnchoredDesc;
class AnchorDesc : public DebugInfoDesc {
-private:
- std::string Name; // Anchor type string.
+private:
+ unsigned AnchorTag; // Tag number of descriptors anchored
+ // by this object.
public:
AnchorDesc();
- AnchorDesc(const std::string &N);
+ AnchorDesc(AnchoredDesc *D);
// Accessors
- const std::string &getName() const { return Name; }
+ unsigned getAnchorTag() const { return AnchorTag; }
// Implement isa/cast/dyncast.
static bool classof(const AnchorDesc *) { return true; }
@@ -198,6 +200,10 @@
//===--------------------------------------------------------------------===//
// Subclasses should supply the following virtual methods.
+ /// getAnchorString - Return a string used to label descriptor's anchor.
+ ///
+ virtual const char *getAnchorString() const = 0;
+
/// ApplyToFields - Target the visitor to the fields of the AnchoredDesc.
///
virtual void ApplyToFields(DIVisitor *Visitor);
@@ -217,6 +223,7 @@
public:
CompileUnitDesc();
+
// Accessors
unsigned getDebugVersion() const { return DebugVersion; }
unsigned getLanguage() const { return Language; }
@@ -252,6 +259,7 @@
/// getAnchorString - Return a string used to label this descriptor's anchor.
///
+ static const char *AnchorString;
virtual const char *getAnchorString() const;
#ifndef NDEBUG
@@ -553,6 +561,7 @@
/// getAnchorString - Return a string used to label this descriptor's anchor.
///
+ static const char *AnchorString;
virtual const char *getAnchorString() const;
#ifndef NDEBUG
@@ -591,6 +600,7 @@
/// getAnchorString - Return a string used to label this descriptor's anchor.
///
+ static const char *AnchorString;
virtual const char *getAnchorString() const;
#ifndef NDEBUG
More information about the llvm-commits
mailing list