- Introduce a skeleton outline for the GOFFAsmParser
- Before instantiating AsmParser/HLASMAsmParser, target specific asm parsers are attempted to be initialized first before proceeding. If it doesn't exist for a particular file type, we report a fatal error.
- This patch allows to properly instantiate the HLASMAsmParser on z/OS, and ensures we can write lit tests and unit tests which will involve the instantiation of asm parsers, without an assert / fatal error.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/unittests/MC/SystemZ/SystemZAsmLexerTest.cpp | ||
---|---|---|
128 | The name should be SystemZAsmLexerzOS - as the name of the OS is z/OS. |
llvm/unittests/MC/SystemZ/SystemZAsmLexerTest.cpp | ||
---|---|---|
128 | On the other hand, as the first letter of a component in camel case, shouldn't the "z" still be capitalized? LexerzOS looks a bit weird to me :-) |
llvm/unittests/MC/SystemZ/SystemZAsmLexerTest.cpp | ||
---|---|---|
128 | Agree about the look. |
llvm/unittests/MC/SystemZ/SystemZAsmLexerTest.cpp | ||
---|---|---|
128 | We also already have Triple::ZOS as well as the ZOS class in clang/lib/Driver/Toolchains/ZOS.cpp and the ZOSTargetInfo class in clang/lib/Basic/Target/OSTargets.h ... |
llvm/unittests/MC/SystemZ/SystemZAsmLexerTest.cpp | ||
---|---|---|
128 | Agree. We can use z/OS in comments wherever needed. |
The name should be SystemZAsmLexerzOS - as the name of the OS is z/OS.