[ClangImporter] Don't pass API notes options when compiling bitcode. (#10422)

Avoids a bogus "argument unused" warning, since bitcode compilation
doesn't bother to set up much of a Clang AST context. (-embed-bitcode
compiles in two steps: source -> bitcode, then bitcode -> object
file. This is about the second step.)

Patch by Bob Wilson, who's currently on vacation but wanted this to
get in sooner rather than later.

rdar://problem/31372950
This commit is contained in:
Jordan Rose
2017-06-20 16:02:34 -07:00
committed by GitHub
parent 351ffabf1a
commit 65391ccac5
2 changed files with 18 additions and 17 deletions

View File

@@ -23,6 +23,7 @@ target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
; CHECK-IMPORTER: clang
; CHECK-IMPORTER: -fembed-bitcode
; CHECK-IMPORTER: -target
; CHECK-IMPORTER-NOT: argument unused
define i32 @f0() nounwind ssp {
ret i32 0