LLVM 22.0.0git
ELFAsmParser.cpp File Reference
#include "llvm/ADT/ScopeExit.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/BinaryFormat/ELF.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCDirectives.h"
#include "llvm/MC/MCParser/AsmLexer.h"
#include "llvm/MC/MCParser/MCAsmParser.h"
#include "llvm/MC/MCParser/MCAsmParserExtension.h"
#include "llvm/MC/MCSectionELF.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/MC/MCSymbolELF.h"
#include "llvm/MC/SectionKind.h"
#include "llvm/Support/SMLoc.h"
#include <cassert>
#include <cstdint>
#include <utility>

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.

Functions

static unsigned parseSectionFlags (const Triple &TT, StringRef flagsStr, bool *UseLastGroup)
static bool hasPrefix (StringRef SectionName, StringRef Prefix)
static bool allowSectionTypeMismatch (const Triple &TT, StringRef SectionName, unsigned Type)
static MCSymbolAttr MCAttrForString (StringRef Type)
MCAsmParserExtensionllvm::createELFAsmParser ()

Function Documentation

◆ allowSectionTypeMismatch()

bool allowSectionTypeMismatch ( const Triple & TT,
StringRef SectionName,
unsigned Type )
static

Definition at line 479 of file ELFAsmParser.cpp.

References llvm::ELF::SHT_PROGBITS, and llvm::Triple::x86_64.

◆ hasPrefix()

bool hasPrefix ( StringRef SectionName,
StringRef Prefix )
static

Definition at line 474 of file ELFAsmParser.cpp.

◆ MCAttrForString()

◆ parseSectionFlags()