summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/RuntimeDyld
diff options
context:
space:
mode:
authorAhmed Charles <ace2001ac@gmail.com>2012-02-13 06:30:56 +0000
committerAhmed Charles <ace2001ac@gmail.com>2012-02-13 06:30:56 +0000
commitb83a67e1e3fe210bd99a82eccd3dc5b1b44f1503 (patch)
treea8eb88c098f90f4406774107d82dac131287200e /lib/ExecutionEngine/RuntimeDyld
parent4eaca023dce4f204f937526c803c3430cf541a1b (diff)
downloadllvm-b83a67e1e3fe210bd99a82eccd3dc5b1b44f1503.tar.gz
llvm-b83a67e1e3fe210bd99a82eccd3dc5b1b44f1503.tar.bz2
llvm-b83a67e1e3fe210bd99a82eccd3dc5b1b44f1503.tar.xz
Fix various issues (or do cleanups) found by enabling certain MSVC warnings.
- Use unsigned literals when the desired result is unsigned. This mostly allows unsigned/signed mismatch warnings to be less noisy even if they aren't on by default. - Remove misplaced llvm_unreachable. - Add static to a declaration of a function on MSVC x86 only. - Change some instances of calling a static function through a variable to simply calling that function while removing the unused variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150364 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/RuntimeDyld')
-rw-r--r--lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
index 4be91d347b..75e4f71ed8 100644
--- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
+++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
@@ -91,7 +91,6 @@ resolveARMRelocation(uintptr_t Address, uintptr_t Value, bool isPCRel,
default:
llvm_unreachable("Invalid relocation type!");
case macho::RIT_Vanilla: {
- llvm_unreachable("Invalid relocation type!");
// Mask in the target value a byte at a time (we don't have an alignment
// guarantee for the target address, so this is safest).
uint8_t *p = (uint8_t*)Address;