summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/COFFYAML.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2013-06-05 03:00:13 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2013-06-05 03:00:13 +0000
commit36af2529ee81efc8fca98ad65a3a9fadc9e6e45e (patch)
treee2a23e02a4a74622038ea051ddb3c4fe08514d26 /llvm/lib/Object/COFFYAML.cpp
parenta3661146ea15bcdf71a1d962b3c301fb1167bad6 (diff)
downloadbcm5719-llvm-36af2529ee81efc8fca98ad65a3a9fadc9e6e45e.tar.gz
bcm5719-llvm-36af2529ee81efc8fca98ad65a3a9fadc9e6e45e.zip
Fix CoerceIntOrPtrToIntOrPtr on big-endian targets.
Type coercion for argument passing is equivalent to storing the source type and loading the destination type from the same pointer. On big-endian targets, this means that the high bits of integers are preserved. This patch fixes the CoerceIntOrPtrToIntOrPtr() function on big-endian targets by inserting the required shift instructions to preserve the high bits instead of the low bits. This is used by SparcABIInfo when passing small structs in the high bits of registers. llvm-svn: 183291
Diffstat (limited to 'llvm/lib/Object/COFFYAML.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud