]> granicus.if.org Git - clang/commit
[OpenMP][NVPTX] Use appropriate _CALL_ELF macro when offloading
authorGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>
Mon, 27 Aug 2018 20:16:20 +0000 (20:16 +0000)
committerGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>
Mon, 27 Aug 2018 20:16:20 +0000 (20:16 +0000)
commit56b1cc8d60f5b1604a4f6ada4d4b9b8a6de65ce2
tree713efeb6bf362579e916dc42f2a56038b014160b
parent260967ebf6d2195623045b81fdbfaf59d9499776
[OpenMP][NVPTX] Use appropriate _CALL_ELF macro when offloading

Summary: When offloading to a device and using the powerpc64le version of the auxiliary triple, the _CALL_ELF macro is not set correctly to 2 resulting in the attempt to include a header that does not exist. This patch fixes this problem.

Reviewers: Hahnfeld, ABataev, caomhin

Reviewed By: Hahnfeld

Subscribers: guansong, cfe-commits

Differential Revision: https://reviews.llvm.org/D51312

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@340772 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/InitPreprocessor.cpp
test/Preprocessor/aux-triple.c