llvm-project/llvm/tools/llvm-ml
Philipp Krones 632ebc4ab4 [MC] Untangle MCContext and MCObjectFileInfo
This untangles the MCContext and the MCObjectFileInfo. There is a circular
dependency between MCContext and MCObjectFileInfo. Currently this dependency
also exists during construction: You can't contruct a MOFI without a MCContext
without constructing the MCContext with a dummy version of that MOFI first.
This removes this dependency during construction. In a perfect world,
MCObjectFileInfo wouldn't depend on MCContext at all, but only be stored in the
MCContext, like other MC information. This is future work.

This also shifts/adds more information to the MCContext making it more
available to the different targets. Namely:

- TargetTriple
- ObjectFileType
- SubtargetInfo

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D101462
2021-05-05 10:03:02 -07:00
..
CMakeLists.txt [ms] [llvm-ml] Introduce command-line compatibility for ml.exe and ml64.exe 2020-12-01 17:43:44 -05:00
Disassembler.cpp [MC] Untangle MCContext and MCObjectFileInfo 2021-05-05 10:03:02 -07:00
Disassembler.h [ms] [llvm-ml] Add placeholder for llvm-ml, based on llvm-mc 2020-01-20 09:19:10 -05:00
Opts.td [ms] [llvm-ml] Accept /WX to signal that warnings should be fatal. 2021-04-02 15:13:20 -04:00
llvm-ml.cpp [MC] Untangle MCContext and MCObjectFileInfo 2021-05-05 10:03:02 -07:00