aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/DwarfWriter.h
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-01-27 15:20:54 +0000
committerJim Laskey <jlaskey@mac.com>2006-01-27 15:20:54 +0000
commitd8f77bae03b4ff701ed24ce74d1bf079f2dd197f (patch)
treec09150d8cdaa76cba40480f447308830875c925e /include/llvm/CodeGen/DwarfWriter.h
parent8aeb7c6051682e829fd6179ef2745747339b0792 (diff)
downloadexternal_llvm-d8f77bae03b4ff701ed24ce74d1bf079f2dd197f.tar.gz
external_llvm-d8f77bae03b4ff701ed24ce74d1bf079f2dd197f.tar.bz2
external_llvm-d8f77bae03b4ff701ed24ce74d1bf079f2dd197f.zip
Improve visibility/correctness of operand indices in "llvm.db" objects.
Handle 64 in DIEs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25684 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/DwarfWriter.h')
-rw-r--r--include/llvm/CodeGen/DwarfWriter.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/include/llvm/CodeGen/DwarfWriter.h b/include/llvm/CodeGen/DwarfWriter.h
index 7c460e2487..8bf472d4cf 100644
--- a/include/llvm/CodeGen/DwarfWriter.h
+++ b/include/llvm/CodeGen/DwarfWriter.h
@@ -176,10 +176,10 @@ namespace llvm {
//
class DIEInteger : public DIEValue {
private:
- int Integer;
+ uint64_t Integer;
public:
- DIEInteger(int I) : DIEValue(isInteger), Integer(I) {}
+ DIEInteger(uint64_t I) : DIEValue(isInteger), Integer(I) {}
// Implement isa/cast/dyncast.
static bool classof(const DIEInteger *) { return true; }
@@ -334,10 +334,13 @@ namespace llvm {
/// sibling.
unsigned SiblingOffset() const { return Offset + Size; }
- /// AddInt - Add a simple integer attribute data and value.
+ /// AddUInt - Add an unsigned integer attribute data and value.
///
- void AddInt(unsigned Attribute, unsigned Form,
- int Integer, bool IsSigned = false);
+ void AddUInt(unsigned Attribute, unsigned Form, uint64_t Integer);
+
+ /// AddSInt - Add an signed integer attribute data and value.
+ ///
+ void AddSInt(unsigned Attribute, unsigned Form, int64_t Integer);
/// AddString - Add a std::string attribute data and value.
///
@@ -586,6 +589,10 @@ public:
///
void EmitLong(int Value) const;
+ /// EmitLongLong - Emit a long long directive and value.
+ ///
+ void EmitLongLong(uint64_t Value) const;
+
/// EmitString - Emit a string with quotes and a null terminator.
/// Special characters are emitted properly. (Eg. '\t')
void EmitString(const std::string &String) const;