Skip to content

Commit

Permalink
LLVMLINUX: kbuild: LLVMLinux: Remove rules to generate LLVM bitcode f…
Browse files Browse the repository at this point in the history
…iles from asm code
  • Loading branch information
khusika committed May 29, 2018
1 parent 024aa89 commit d5dc11d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1594,8 +1594,6 @@ endif
$(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
%.ll: %.c prepare scripts FORCE
$(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
%.ll: %.S prepare scripts FORCE
$(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)

# Modules
/: prepare scripts FORCE
Expand Down
8 changes: 1 addition & 7 deletions scripts/Makefile.build
Original file line number Diff line number Diff line change
Expand Up @@ -175,19 +175,13 @@ $(obj)/%.symtypes : $(src)/%.c FORCE
$(call cmd,cc_symtypes_c)

# LLVM bitcode
# Generate .ll files from .s and .c
# Generate .ll files from .c
quiet_cmd_cc_ll_c = CC $(quiet_modtag) $@
cmd_cc_ll_c = $(CC) $(c_flags) -emit-llvm -S -o $@ $<

$(obj)/%.ll: $(src)/%.c FORCE
$(call if_changed_dep,cc_ll_c)

quiet_cmd_as_ll_S = CPP $(quiet_modtag) $@
cmd_as_ll_S = $(CPP) $(a_flags) -o $@ $<

$(obj)/%.ll: $(src)/%.S FORCE
$(call if_changed_dep,as_ll_S)

# C (.c) files
# The C file is compiled and updated dependency information is generated.
# (See cmd_cc_o_c + relevant part of rule_cc_o_c)
Expand Down

0 comments on commit d5dc11d

Please sign in to comment.