aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/BinaryStreamWriter.cpp
diff options
context:
space:
mode:
authorGuansong Zhang <zhang.guansong@gmail.com>2017-03-15 20:57:11 +0000
committerGuansong Zhang <zhang.guansong@gmail.com>2017-03-15 20:57:11 +0000
commit4747cf5677d2678a25e63a55da6bc7703488809f (patch)
tree71a077d282236d7b8691edab2da468ca1fa1609e /llvm/lib/Support/BinaryStreamWriter.cpp
parent718e8ad23930be50616e259d5a0a148aba859ace (diff)
downloadllvm-4747cf5677d2678a25e63a55da6bc7703488809f.zip
llvm-4747cf5677d2678a25e63a55da6bc7703488809f.tar.gz
llvm-4747cf5677d2678a25e63a55da6bc7703488809f.tar.bz2
enable -save-temps with -finclude-defult-header
Currently the two flags can not work together. To illustrate the issue, we can have an one line file a.cl contains only an empty function cat a.cl void test(){} Then use clang -v -save-temps -x cl -Xclang -cl-std=CL2.0 -Xclang -finclude-default-header -target amdgcn -S -c a.cl we will get redefinition errors for various things. The reason is that the -finclude-default-header flag is not meant to be on cc1 command other than the preprocessor. The fix is modeled after the code just below the change to filter the -finclude-default-header flag out when we are not in the preprocess phase. Differential Revision: https://reviews.llvm.org/D30743 llvm-svn: 297890
Diffstat (limited to 'llvm/lib/Support/BinaryStreamWriter.cpp')
0 files changed, 0 insertions, 0 deletions