diff options
author | Greg Clayton <gclayton@apple.com> | 2011-08-15 07:23:47 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-08-15 07:23:47 +0000 |
commit | f6a5fc2e8bbae5fa9727eb51f19facfc6477c1e9 (patch) | |
tree | 8800343e66e40b479211df055aac687ba7f3e465 /lldb/source/Core/DataExtractor.cpp | |
parent | 129e8678653c9fda9164eb1d3c1768d1ada96097 (diff) | |
download | bcm5719-llvm-f6a5fc2e8bbae5fa9727eb51f19facfc6477c1e9.tar.gz bcm5719-llvm-f6a5fc2e8bbae5fa9727eb51f19facfc6477c1e9.zip |
Patch from Matt Johnson that cleans up usage of APInt
to keep GCC 4.5.2 happy and also to not use a deprecated
llvm API.
llvm-svn: 137605
Diffstat (limited to 'lldb/source/Core/DataExtractor.cpp')
-rw-r--r-- | lldb/source/Core/DataExtractor.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Core/DataExtractor.cpp b/lldb/source/Core/DataExtractor.cpp index e1fda0c9373..4eb4d26ef7d 100644 --- a/lldb/source/Core/DataExtractor.cpp +++ b/lldb/source/Core/DataExtractor.cpp @@ -14,6 +14,7 @@ #include <string> #include "llvm/ADT/APInt.h" +#include "llvm/ADT/ArrayRef.h" #include "llvm/Support/MathExtras.h" #include "lldb/Core/DataExtractor.h" @@ -1357,9 +1358,7 @@ DumpAPInt (Stream *s, const DataExtractor &data, uint32_t offset, uint32_t byte_ else return offset; - llvm::APInt apint (byte_size * 8, - uint64_array.size(), - uint64_array.data()); + llvm::APInt apint (byte_size * 8, llvm::ArrayRef<uint64_t>(uint64_array)); std::string apint_str(apint.toString(radix, is_signed)); switch (radix) |