Lines Matching refs:StringRef
25 #include "llvm/ADT/StringRef.h"
51 StringRef path = mb.getBufferIdentifier();
63 void readDefsym(StringRef name);
66 void addFile(StringRef path);
86 SymbolAssignment *readSymbolAssignment(StringRef name);
87 ByteCommand *readByteCommand(StringRef tok);
89 bool readSectionDirective(OutputSection *cmd, StringRef tok1, StringRef tok2);
92 OutputSection *readOutputSectionDescription(StringRef outSec);
94 std::vector<StringRef> readOutputSectionPhdrs();
96 InputSectionDescription *readInputSectionDescription(StringRef tok);
99 InputSectionDescription *readInputSectionRules(StringRef filePattern,
105 SymbolAssignment *readAssignment(StringRef tok);
111 Expr readMemoryAssignment(StringRef, StringRef, StringRef);
114 Expr combine(StringRef op, Expr l, Expr r);
117 StringRef readParenLiteral();
125 void readVersionDeclaration(StringRef verStr);
138 static StringRef unquote(StringRef s) {
210 StringRef verStr = next();
229 StringRef tok = next();
271 void ScriptParser::readDefsym(StringRef name) {
281 void ScriptParser::addFile(StringRef s) {
284 StringRef path = (config->sysroot + s).toStringRef(pathData);
307 StringRef directory = sys::path::parent_path(filename);
341 StringRef tok = next();
363 StringRef tok = unquote(next());
391 StringRef tok = next();
404 static std::pair<ELFKind, uint16_t> parseBfdName(StringRef s) {
434 StringRef s = config->bfdname;
480 StringRef alias = unquote(next());
482 StringRef name = next();
494 StringRef tok = next();
547 StringRef tok = next();
575 StringRef where = next();
587 StringRef tok = next();
598 static int precedence(StringRef op) {
677 ScriptParser::readInputSectionRules(StringRef filePattern, uint64_t withFlags,
713 ScriptParser::readInputSectionDescription(StringRef tok) {
745 StringRef msg = unquote(next());
758 bool ScriptParser::readSectionDirective(OutputSection *cmd, StringRef tok1, StringRef tok2) {
823 OutputSection *ScriptParser::readOutputSectionDescription(StringRef outSec) {
849 StringRef tok = next();
944 SymbolAssignment *ScriptParser::readAssignment(StringRef tok) {
969 SymbolAssignment *ScriptParser::readSymbolAssignment(StringRef name) {
970 StringRef op = next();
992 Expr ScriptParser::combine(StringRef op, Expr l, Expr r) {
1051 StringRef op1 = peek();
1062 StringRef op2 = peek();
1084 StringRef s = readParenLiteral();
1096 static Optional<uint64_t> parseInt(StringRef tok) {
1126 ByteCommand *ScriptParser::readByteCommand(StringRef tok) {
1144 static llvm::Optional<uint64_t> parseFlag(StringRef tok) {
1181 StringRef tok = unquote(next());
1201 StringRef ScriptParser::readParenLiteral() {
1205 StringRef tok = next();
1211 static void checkIfExists(OutputSection *cmd, StringRef location) {
1233 StringRef tok = next();
1247 StringRef name = readParenLiteral();
1272 StringRef name = readParenLiteral();
1312 StringRef name = readParenLiteral();
1316 StringRef name = readParenLiteral();
1324 StringRef name = readParenLiteral();
1343 StringRef name = readParenLiteral();
1359 StringRef name = readParenLiteral();
1398 std::vector<StringRef> ScriptParser::readOutputSectionPhdrs() {
1399 std::vector<StringRef> phdrs;
1401 StringRef tok = next();
1410 StringRef tok = next();
1453 void ScriptParser::readVersionDeclaration(StringRef verStr) {
1477 bool elf::hasWildcard(StringRef s) {
1478 return s.find_first_of("?*[") != StringRef::npos;
1504 StringRef tok = next();
1518 StringRef tok = next();
1526 StringRef tok = next();
1538 Expr ScriptParser::readMemoryAssignment(StringRef s1, StringRef s2,
1539 StringRef s3) {
1555 StringRef tok = next();
1621 void elf::readDefsym(StringRef name, MemoryBufferRef mb) {