[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineDebugInfo.h
Jim Laskey
jlaskey at apple.com
Fri Mar 3 07:07:18 PST 2006
Changes in directory llvm/include/llvm/CodeGen:
MachineDebugInfo.h updated: 1.26 -> 1.27
---
Log message:
Adding basic structure support.
---
Diffs of the changes: (+7 -5)
MachineDebugInfo.h | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
Index: llvm/include/llvm/CodeGen/MachineDebugInfo.h
diff -u llvm/include/llvm/CodeGen/MachineDebugInfo.h:1.26 llvm/include/llvm/CodeGen/MachineDebugInfo.h:1.27
--- llvm/include/llvm/CodeGen/MachineDebugInfo.h:1.26 Wed Mar 1 17:52:37 2006
+++ llvm/include/llvm/CodeGen/MachineDebugInfo.h Fri Mar 3 09:06:56 2006
@@ -268,23 +268,25 @@
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 @@
/// 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();
More information about the llvm-commits
mailing list