#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/Twine.h"
#include "llvm/BinaryFormat/MachO.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCDirectives.h"
#include "llvm/MC/MCParser/MCAsmLexer.h"
#include "llvm/MC/MCParser/MCAsmParser.h"
#include "llvm/MC/MCParser/MCAsmParserExtension.h"
#include "llvm/MC/MCSectionMachO.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/MC/SectionKind.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/SMLoc.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/TargetParser/Triple.h"
#include <cstddef>
#include <cstdint>
#include <string>
#include <system_error>
#include <utility>
usingnamespacellvm;
namespace {
class DarwinAsmParser : public MCAsmParserExtension { … };
}
bool DarwinAsmParser::parseSectionSwitch(StringRef Segment, StringRef Section,
unsigned TAA, unsigned Alignment,
unsigned StubSize) { … }
bool DarwinAsmParser::parseDirectiveAltEntry(StringRef, SMLoc) { … }
bool DarwinAsmParser::parseDirectiveDesc(StringRef, SMLoc) { … }
bool DarwinAsmParser::parseDirectiveIndirectSymbol(StringRef, SMLoc Loc) { … }
bool DarwinAsmParser::parseDirectiveDumpOrLoad(StringRef Directive,
SMLoc IDLoc) { … }
bool DarwinAsmParser::parseDirectiveLinkerOption(StringRef IDVal, SMLoc) { … }
bool DarwinAsmParser::parseDirectiveLsym(StringRef, SMLoc) { … }
bool DarwinAsmParser::parseDirectiveSection(StringRef, SMLoc) { … }
bool DarwinAsmParser::parseDirectivePushSection(StringRef S, SMLoc Loc) { … }
bool DarwinAsmParser::parseDirectivePopSection(StringRef, SMLoc) { … }
bool DarwinAsmParser::parseDirectivePrevious(StringRef DirName, SMLoc) { … }
bool DarwinAsmParser::parseDirectiveSecureLogUnique(StringRef, SMLoc IDLoc) { … }
bool DarwinAsmParser::parseDirectiveSecureLogReset(StringRef, SMLoc IDLoc) { … }
bool DarwinAsmParser::parseDirectiveSubsectionsViaSymbols(StringRef, SMLoc) { … }
bool DarwinAsmParser::parseDirectiveTBSS(StringRef, SMLoc) { … }
bool DarwinAsmParser::parseDirectiveZerofill(StringRef, SMLoc) { … }
bool DarwinAsmParser::parseDirectiveDataRegion(StringRef, SMLoc) { … }
bool DarwinAsmParser::parseDirectiveDataRegionEnd(StringRef, SMLoc) { … }
static bool isSDKVersionToken(const AsmToken &Tok) { … }
bool DarwinAsmParser::parseMajorMinorVersionComponent(unsigned *Major,
unsigned *Minor,
const char *VersionName) { … }
bool DarwinAsmParser::parseOptionalTrailingVersionComponent(
unsigned *Component, const char *ComponentName) { … }
bool DarwinAsmParser::parseVersion(unsigned *Major, unsigned *Minor,
unsigned *Update) { … }
bool DarwinAsmParser::parseSDKVersion(VersionTuple &SDKVersion) { … }
void DarwinAsmParser::checkVersion(StringRef Directive, StringRef Arg,
SMLoc Loc, Triple::OSType ExpectedOS) { … }
static Triple::OSType getOSTypeFromMCVM(MCVersionMinType Type) { … }
bool DarwinAsmParser::parseVersionMin(StringRef Directive, SMLoc Loc,
MCVersionMinType Type) { … }
static Triple::OSType getOSTypeFromPlatform(MachO::PlatformType Type) { … }
bool DarwinAsmParser::parseBuildVersion(StringRef Directive, SMLoc Loc) { … }
bool DarwinAsmParser::parseDirectiveCGProfile(StringRef S, SMLoc Loc) { … }
namespace llvm {
MCAsmParserExtension *createDarwinAsmParser() { … }
}