Fix various issues (or do cleanups) found by enabling certain MSVC warnings.
authorAhmed Charles <ace2001ac@gmail.com>
Mon, 13 Feb 2012 06:30:56 +0000 (06:30 +0000)
committerAhmed Charles <ace2001ac@gmail.com>
Mon, 13 Feb 2012 06:30:56 +0000 (06:30 +0000)
commitb83a67e1e3fe210bd99a82eccd3dc5b1b44f1503
treea8eb88c098f90f4406774107d82dac131287200e
parent4eaca023dce4f204f937526c803c3430cf541a1b
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
include/llvm/ADT/DenseMapInfo.h
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
lib/Target/X86/X86JITInfo.cpp
lib/Transforms/Scalar/GlobalMerge.cpp
lib/Transforms/Scalar/MemCpyOptimizer.cpp