mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
Make "-opt [-emit-llvm]" work for .ll files.
Patch by Kaelyn Uhrain! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126000 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dc8c3fdcf1
commit
75dab009eb
@ -274,7 +274,8 @@ def llvm_as : Tool<
|
|||||||
(out_language "llvm-bitcode"),
|
(out_language "llvm-bitcode"),
|
||||||
(output_suffix "bc"),
|
(output_suffix "bc"),
|
||||||
(command "llvm-as"),
|
(command "llvm-as"),
|
||||||
(actions (case (switch_on "emit-llvm"), (stop_compilation)))
|
(actions (case (and (switch_on "emit-llvm"), (not (switch_on "opt"))),
|
||||||
|
(stop_compilation)))
|
||||||
]>;
|
]>;
|
||||||
|
|
||||||
def llvm_gcc_assembler : Tool<
|
def llvm_gcc_assembler : Tool<
|
||||||
@ -424,7 +425,8 @@ def CompilationGraph : CompilationGraph<[
|
|||||||
(edge "llvm_as", "llc"),
|
(edge "llvm_as", "llc"),
|
||||||
|
|
||||||
(optional_edge "root", "llvm_as",
|
(optional_edge "root", "llvm_as",
|
||||||
(case (switch_on "emit-llvm"), (inc_weight))),
|
(case (or (switch_on "emit-llvm"),
|
||||||
|
(switch_on "opt")), (inc_weight))),
|
||||||
(optional_edge "llvm_gcc_c", "opt",
|
(optional_edge "llvm_gcc_c", "opt",
|
||||||
(case (switch_on "opt"), (inc_weight))),
|
(case (switch_on "opt"), (inc_weight))),
|
||||||
(optional_edge "llvm_gcc_cpp", "opt",
|
(optional_edge "llvm_gcc_cpp", "opt",
|
||||||
|
Loading…
Reference in New Issue
Block a user