projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The TargetData is not used for the isPowerOfTwo determination. It has never
[oota-llvm.git]
/
include
/
llvm
/
DebugInfo.h
diff --git
a/include/llvm/DebugInfo.h
b/include/llvm/DebugInfo.h
index 8520ebaba50d168014c40033c253441cd709ec33..5bfbc63eff5f9f2e84a98afedb4b4b04749c9d00 100644
(file)
--- a/
include/llvm/DebugInfo.h
+++ b/
include/llvm/DebugInfo.h
@@
-17,8
+17,8
@@
#ifndef LLVM_ANALYSIS_DEBUGINFO_H
#define LLVM_ANALYSIS_DEBUGINFO_H
#ifndef LLVM_ANALYSIS_DEBUGINFO_H
#define LLVM_ANALYSIS_DEBUGINFO_H
-#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallPtrSet.h"
+#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Dwarf.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Dwarf.h"
@@
-71,6
+71,7
@@
namespace llvm {
return (unsigned)getUInt64Field(Elt);
}
uint64_t getUInt64Field(unsigned Elt) const;
return (unsigned)getUInt64Field(Elt);
}
uint64_t getUInt64Field(unsigned Elt) const;
+ int64_t getInt64Field(unsigned Elt) const;
DIDescriptor getDescriptorField(unsigned Elt) const;
template <typename DescTy>
DIDescriptor getDescriptorField(unsigned Elt) const;
template <typename DescTy>
@@
-141,8
+142,8
@@
namespace llvm {
public:
explicit DISubrange(const MDNode *N = 0) : DIDescriptor(N) {}
public:
explicit DISubrange(const MDNode *N = 0) : DIDescriptor(N) {}
-
uint64_t getLo() const { return getU
Int64Field(1); }
-
uint64_t getHi() const { return getU
Int64Field(2); }
+
int64_t getLo() const { return get
Int64Field(1); }
+
int64_t getCount() const { return get
Int64Field(2); }
};
/// DIArray - This descriptor holds an array of descriptors.
};
/// DIArray - This descriptor holds an array of descriptors.
@@
-634,6
+635,7
@@
namespace llvm {
DIFile F = getFieldAs<DIFile>(3);
return F.getCompileUnit();
}
DIFile F = getFieldAs<DIFile>(3);
return F.getCompileUnit();
}
+ DIFile getFile() const { return getFieldAs<DIFile>(3); }
unsigned getLineNumber() const {
return (getUnsignedField(4) << 8) >> 8;
}
unsigned getLineNumber() const {
return (getUnsignedField(4) << 8) >> 8;
}