[PATCH] D63852: [Clang] Move assembler into a separate file

Ayke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 26 16:53:35 PDT 2019


aykevl created this revision.
aykevl added a reviewer: chandlerc.
Herald added subscribers: cfe-commits, mgorny.
Herald added a project: clang.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D63852

Files:
  clang/include/clang/Frontend/AssemblerInvocation.h
  clang/lib/Frontend/AssemblerInvocation.cpp
  clang/lib/Frontend/CMakeLists.txt
  clang/tools/driver/cc1as_main.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63852.206765.patch
Type: text/x-patch
Size: 39270 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190626/58ab1ffd/attachment.bin>


More information about the llvm-commits mailing list