]> granicus.if.org Git - clang/commit
Pass -backend-option to LLVM when there is no target machine.
authorYaxun Liu <Yaxun.Liu@amd.com>
Tue, 12 Apr 2016 20:22:32 +0000 (20:22 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Tue, 12 Apr 2016 20:22:32 +0000 (20:22 +0000)
commit0b307f4c68b87eb18e09cd6e4b75dd6bee937b0c
tree8883c13816602f88eda946e5b1472c78cc935536
parent47bc7ec72ef69769b6fa693d574e1f9159b0d6e6
Pass -backend-option to LLVM when there is no target machine.

Clang should pass -backend-option to LLVM even though there is no target machine, since LLVM passes are used when emitting LLVM IR.

Differential Revision: http://reviews.llvm.org/D17552

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@266117 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BackendUtil.cpp
test/Frontend/backend-option.c [new file with mode: 0644]