LLVM: lib/MC/MCParser/DarwinAsmParser.cpp File Reference (original) (raw)
#include "[llvm/ADT/SmallVector.h](SmallVector%5F8h%5Fsource.html)"#include "[llvm/ADT/StringRef.h](StringRef%5F8h%5Fsource.html)"#include "[llvm/ADT/StringSwitch.h](StringSwitch%5F8h%5Fsource.html)"#include "[llvm/ADT/Twine.h](Twine%5F8h%5Fsource.html)"#include "[llvm/BinaryFormat/MachO.h](BinaryFormat%5F2MachO%5F8h%5Fsource.html)"#include "[llvm/MC/MCContext.h](MCContext%5F8h%5Fsource.html)"#include "[llvm/MC/MCDirectives.h](MCDirectives%5F8h%5Fsource.html)"#include "[llvm/MC/MCParser/AsmLexer.h](AsmLexer%5F8h%5Fsource.html)"#include "[llvm/MC/MCParser/MCAsmParser.h](MCAsmParser%5F8h%5Fsource.html)"#include "[llvm/MC/MCParser/MCAsmParserExtension.h](MCAsmParserExtension%5F8h%5Fsource.html)"#include "[llvm/MC/MCSectionMachO.h](MCSectionMachO%5F8h%5Fsource.html)"#include "[llvm/MC/MCStreamer.h](MCStreamer%5F8h%5Fsource.html)"#include "[llvm/MC/MCSymbol.h](MCSymbol%5F8h%5Fsource.html)"#include "[llvm/MC/SectionKind.h](SectionKind%5F8h%5Fsource.html)"#include "[llvm/Support/Error.h](llvm%5F2Support%5F2Error%5F8h%5Fsource.html)"#include "[llvm/Support/FileSystem.h](FileSystem%5F8h%5Fsource.html)"#include "[llvm/Support/MemoryBuffer.h](MemoryBuffer%5F8h%5Fsource.html)"#include "[llvm/Support/SMLoc.h](SMLoc%5F8h%5Fsource.html)"#include "[llvm/Support/SourceMgr.h](Support%5F2SourceMgr%5F8h%5Fsource.html)"#include "[llvm/Support/raw_ostream.h](raw%5F%5Fostream%5F8h%5Fsource.html)"#include "[llvm/TargetParser/Triple.h](Triple%5F8h%5Fsource.html)"#include <cstddef>#include <cstdint>#include <string>#include <system_error>#include <utility>#include "llvm/BinaryFormat/MachO.def"
Go to the source code of this file.
| Macros | |
|---|---|
| #define | PLATFORM(platform, id, name, build_name, target, tapi_target, marketing) |
| Functions | |
|---|---|
| static bool | isSDKVersionToken (const AsmToken &Tok) |
| static Triple::OSType | getOSTypeFromMCVM (MCVersionMinType Type) |
| static Triple::OSType | getOSTypeFromPlatform (MachO::PlatformType Type) |
Macro Definition Documentation
◆ PLATFORM
| #define PLATFORM | ( | platform, |
|---|---|---|
| id, | ||
| name, | ||
| build_name, | ||
| target, | ||
| tapi_target, | ||
| marketing ) |
Value:
.Case(#build_name, MachO::PLATFORM_##platform)
Function Documentation
◆ getOSTypeFromMCVM()
| Triple::OSType getOSTypeFromMCVM ( MCVersionMinType Type) | static |
|---|
Definition at line 1090 of file DarwinAsmParser.cpp.
References llvm::Triple::IOS, llvm_unreachable, llvm::Triple::MacOSX, llvm::MCVM_IOSVersionMin, llvm::MCVM_OSXVersionMin, llvm::MCVM_TvOSVersionMin, llvm::MCVM_WatchOSVersionMin, llvm::Triple::TvOS, and llvm::Triple::WatchOS.
◆ getOSTypeFromPlatform()
| Triple::OSType getOSTypeFromPlatform ( MachO::PlatformType Type) | static |
|---|
Definition at line 1126 of file DarwinAsmParser.cpp.
References llvm::Triple::DriverKit, llvm::Triple::IOS, llvm_unreachable, llvm::Triple::MacOSX, llvm::Triple::TvOS, llvm::Triple::WatchOS, and llvm::Triple::XROS.
◆ isSDKVersionToken()
| bool isSDKVersionToken ( const AsmToken & Tok) | static |
|---|
Definition at line 989 of file DarwinAsmParser.cpp.
References llvm::AsmToken::getIdentifier(), llvm::AsmToken::Identifier, and llvm::AsmToken::is().