summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-06-24 17:34:33 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-06-24 17:34:33 +0000
commitb761900a12a3628327f183124fb8ad4d3354530d (patch)
tree7ac659f6a39fb324fc1e95691cc80ec88a489d7e
parentae9ce8b68881a19d465e939cb53db84cf63f94f7 (diff)
downloadbcm5719-llvm-b761900a12a3628327f183124fb8ad4d3354530d.tar.gz
bcm5719-llvm-b761900a12a3628327f183124fb8ad4d3354530d.zip
DebugInfo: DIBuilder changes to match DIEnumerator changes in r184694
Representing enumerators by int64 instead of uint64 for now. At some point we need to address the underlying issue of representation depending on the specific enumeration. llvm-svn: 184761
-rw-r--r--llvm/include/llvm/DIBuilder.h2
-rw-r--r--llvm/lib/IR/DIBuilder.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/DIBuilder.h b/llvm/include/llvm/DIBuilder.h
index fdc3981e29b..021ef06e6c1 100644
--- a/llvm/include/llvm/DIBuilder.h
+++ b/llvm/include/llvm/DIBuilder.h
@@ -113,7 +113,7 @@ namespace llvm {
DIFile createFile(StringRef Filename, StringRef Directory);
/// createEnumerator - Create a single enumerator value.
- DIEnumerator createEnumerator(StringRef Name, uint64_t Val);
+ DIEnumerator createEnumerator(StringRef Name, int64_t Val);
/// createNullPtrType - Create C++0x nullptr type.
DIBasicType createNullPtrType(StringRef Name);
diff --git a/llvm/lib/IR/DIBuilder.cpp b/llvm/lib/IR/DIBuilder.cpp
index 758e7cfeb3c..4f271b67117 100644
--- a/llvm/lib/IR/DIBuilder.cpp
+++ b/llvm/lib/IR/DIBuilder.cpp
@@ -198,7 +198,7 @@ DIFile DIBuilder::createFile(StringRef Filename, StringRef Directory) {
}
/// createEnumerator - Create a single enumerator value.
-DIEnumerator DIBuilder::createEnumerator(StringRef Name, uint64_t Val) {
+DIEnumerator DIBuilder::createEnumerator(StringRef Name, int64_t Val) {
assert(!Name.empty() && "Unable to create enumerator without name");
Value *Elts[] = {
GetTagConstant(VMContext, dwarf::DW_TAG_enumerator),
OpenPOWER on IntegriCloud