diff options
author | Ahmed Charles <ace2001ac@gmail.com> | 2012-02-13 06:30:56 +0000 |
---|---|---|
committer | Ahmed Charles <ace2001ac@gmail.com> | 2012-02-13 06:30:56 +0000 |
commit | 32e983e4fca666082f5be7bd662bff12b5d5b203 (patch) | |
tree | 624624b44b424a2ffaf8a2f715c66314ae260920 /llvm/lib/ExecutionEngine | |
parent | 74650add0e84e09a6dd48642ab80a8feefdab7a8 (diff) | |
download | bcm5719-llvm-32e983e4fca666082f5be7bd662bff12b5d5b203.tar.gz bcm5719-llvm-32e983e4fca666082f5be7bd662bff12b5d5b203.zip |
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.
llvm-svn: 150364
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r-- | llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp index 4be91d347bb..75e4f71ed8c 100644 --- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp +++ b/llvm/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; |