summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-03-07 20:53:47 +0000
committerJim Laskey <jlaskey@mac.com>2006-03-07 20:53:47 +0000
commite8c3e3b51c21dad94f0b427d7e0d6722e663fc64 (patch)
tree2dbeafc1566913ce938540f6b4d14d3ec4643631 /include
parente1c173bc77e44fe250d905f9e2399dd8868e51a0 (diff)
downloadllvm-e8c3e3b51c21dad94f0b427d7e0d6722e663fc64.tar.gz
llvm-e8c3e3b51c21dad94f0b427d7e0d6722e663fc64.tar.bz2
llvm-e8c3e3b51c21dad94f0b427d7e0d6722e663fc64.tar.xz
Switch to using a numeric id for anchors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26598 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/MachineDebugInfo.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/MachineDebugInfo.h b/include/llvm/CodeGen/MachineDebugInfo.h
index 3fad875415..f48e35727d 100644
--- a/include/llvm/CodeGen/MachineDebugInfo.h
+++ b/include/llvm/CodeGen/MachineDebugInfo.h
@@ -142,16 +142,18 @@ public:
//===----------------------------------------------------------------------===//
/// 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 @@ public:
//===--------------------------------------------------------------------===//
// 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 @@ private:
public:
CompileUnitDesc();
+
// Accessors
unsigned getDebugVersion() const { return DebugVersion; }
unsigned getLanguage() const { return Language; }
@@ -252,6 +259,7 @@ public:
/// 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 @@ public:
/// 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 @@ public:
/// getAnchorString - Return a string used to label this descriptor's anchor.
///
+ static const char *AnchorString;
virtual const char *getAnchorString() const;
#ifndef NDEBUG