Fix usage of APInt.getRawData for big-endian systems
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Fri, 15 Apr 2016 09:55:52 +0000 (09:55 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Fri, 15 Apr 2016 09:55:52 +0000 (09:55 +0000)
commit9521ad2a49af44ef74d4ad56e62ed6ac48c8a192
treecc0fc0e8e3caa6169128cae8d7ffdbb68095d2dc
parent7ac68ccdc0fe5633839382f7e066d3d43a0f2671
Fix usage of APInt.getRawData for big-endian systems

Recommit modified version of r266311 including build bot regression fix.

This differs from the original r266311 by:

- Fixing Scalar::Promote to correctly zero- or sign-extend value depending
  on signedness of the *source* type, not the target type.

- Omitting a few stand-alone fixes that were already committed separately.

llvm-svn: 266422
lldb/include/lldb/Core/Scalar.h
lldb/include/lldb/Symbol/Type.h
lldb/source/Core/Scalar.cpp
lldb/source/Expression/IRInterpreter.cpp
lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
lldb/source/Symbol/ClangASTContext.cpp
lldb/unittests/Core/ScalarTest.cpp