diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-03-03 15:06:57 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-03-03 15:06:57 +0000 |
commit | f01e54770033fe6dde528eea655d91e279b43d21 (patch) | |
tree | 8288252fe1c36dddac9b69973162bb0dd5e1cd49 /include/llvm/CodeGen/MachineDebugInfo.h | |
parent | 3e1ce5a44d3d59b2b9ca68a21261f0f487d69269 (diff) |
Adding basic structure support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26505 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineDebugInfo.h')
-rw-r--r-- | include/llvm/CodeGen/MachineDebugInfo.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/llvm/CodeGen/MachineDebugInfo.h b/include/llvm/CodeGen/MachineDebugInfo.h index 099cd03a9c..3fad875415 100644 --- a/include/llvm/CodeGen/MachineDebugInfo.h +++ b/include/llvm/CodeGen/MachineDebugInfo.h @@ -268,23 +268,25 @@ private: std::string Name; // Type name (may be empty.) CompileUnitDesc *File; // Declared compile unit (may be NULL.) int Line; // Declared line# (may be zero.) - uint64_t Size; // Type size (may be zero.) + uint64_t Size; // Type bit size (may be zero.) + uint64_t Offset; // Type bit offset (may be zero.) -protected: +public: TypeDesc(unsigned T); -public: // Accessors DebugInfoDesc *getContext() const { return Context; } const std::string &getName() const { return Name; } CompileUnitDesc *getFile() const { return File; } int getLine() const { return Line; } uint64_t getSize() const { return Size; } + uint64_t getOffset() const { return Offset; } void setContext(DebugInfoDesc *C) { Context = C; } void setName(const std::string &N) { Name = N; } void setFile(CompileUnitDesc *U) { File = U; } void setLine(int L) { Line = L; } void setSize(uint64_t S) { Size = S; } + void setOffset(uint64_t O) { Offset = O; } /// ApplyToFields - Target the visitor to the fields of the TypeDesc. /// @@ -413,8 +415,8 @@ public: /// value ranges. class SubrangeDesc : public DebugInfoDesc { private: - int64_t Lo; // Low value of range - int64_t Hi; // High value of range + int64_t Lo; // Low value of range. + int64_t Hi; // High value of range. public: SubrangeDesc(); |