[Lldb-commits] [lldb] r137605 - /lldb/trunk/source/Core/DataExtractor.cpp
Greg Clayton
gclayton at apple.com
Mon Aug 15 00:23:47 PDT 2011
Author: gclayton
Date: Mon Aug 15 02:23:47 2011
New Revision: 137605
URL: http://llvm.org/viewvc/llvm-project?rev=137605&view=rev
Log:
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.
Modified:
lldb/trunk/source/Core/DataExtractor.cpp
Modified: lldb/trunk/source/Core/DataExtractor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/DataExtractor.cpp?rev=137605&r1=137604&r2=137605&view=diff
==============================================================================
--- lldb/trunk/source/Core/DataExtractor.cpp (original)
+++ lldb/trunk/source/Core/DataExtractor.cpp Mon Aug 15 02:23:47 2011
@@ -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 @@
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)
More information about the lldb-commits
mailing list