OSDN Git Service

Fix compiler warnings when compiling swiftshader for Fuchsia
authorSergey Ulanov <sergeyu@chromium.org>
Thu, 18 Oct 2018 00:21:42 +0000 (17:21 -0700)
committerSergey Ulanov <sergeyu@chromium.org>
Thu, 18 Oct 2018 00:46:06 +0000 (00:46 +0000)
commit54e397425efa88168ebaa2de79c4709ef949eeec
treed67722df5cce178ecadb71e3219617d7602ab257
parent847fc0b278f8454f8e04c89163bf840aa903df99
Fix compiler warnings when compiling swiftshader for Fuchsia

LLVM_DEFAULT_TARGET_TRIPLE was defined in config.h and llvm-config.h,
which was causing warnings when compiling it for Fuchsia. Also made
some other cleanups in llvm-config.h, particularly removed i386 and arm
ifdefs.

There are still some other warnings not fixed in this CL
('using namespace' in headers), but these don't look Fuchsia-specific.

Bug: 881334
Change-Id: Iaf54e622e9d31553268afe960d6330dcb5920321
Reviewed-on: https://swiftshader-review.googlesource.com/c/21689
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Sergey Ulanov <sergeyu@chromium.org>
third_party/llvm-7.0/configs/fuchsia/include/llvm/Config/llvm-config.h