From: David Blaikie Date: Mon, 24 Jun 2013 17:34:33 +0000 (+0000) Subject: DebugInfo: DIBuilder changes to match DIEnumerator changes in r184694 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8de0a465b832052d975dc9fdced1adcf3336fabc;p=oota-llvm.git 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184761 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/DIBuilder.h b/include/llvm/DIBuilder.h index fdc3981e29b..021ef06e6c1 100644 --- a/include/llvm/DIBuilder.h +++ b/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/lib/IR/DIBuilder.cpp b/lib/IR/DIBuilder.cpp index 758e7cfeb3c..4f271b67117 100644 --- a/lib/IR/DIBuilder.cpp +++ b/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),