[all-commits] [llvm/llvm-project] 232515: [Clang] Move assembler into a separate file

Ayke via All-commits all-commits at lists.llvm.org
Sat Jan 23 05:42:38 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2325157c0568ffd16f3318ad54f947e4e2109ef6
      https://github.com/llvm/llvm-project/commit/2325157c0568ffd16f3318ad54f947e4e2109ef6
  Author: Ayke van Laethem <aykevanlaethem at gmail.com>
  Date:   2021-01-23 (Sat, 23 Jan 2021)

  Changed paths:
    A clang/include/clang/Frontend/AssemblerInvocation.h
    A clang/lib/Frontend/AssemblerInvocation.cpp
    M clang/lib/Frontend/CMakeLists.txt
    M clang/tools/driver/cc1as_main.cpp

  Log Message:
  -----------
  [Clang] Move assembler into a separate file

This change adds an AssemblerInvocation class, similar to the
CompilerInvocation class. It can be used to invoke cc1as directly.

The project I'm working on wants to compile Clang and use it as a static
library. For that to work, there must be a way to invoke the assembler
programmatically, using the same arguments as you would otherwise pass
to cc1as.

Differential Revision: https://reviews.llvm.org/D63852




More information about the All-commits mailing list