aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/llvm12/include/llvm/MC/MCParser/MCAsmParser.h
diff options
context:
space:
mode:
authorshadchin <shadchin@yandex-team.ru>2022-02-10 16:44:30 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:44:30 +0300
commit2598ef1d0aee359b4b6d5fdd1758916d5907d04f (patch)
tree012bb94d777798f1f56ac1cec429509766d05181 /contrib/libs/llvm12/include/llvm/MC/MCParser/MCAsmParser.h
parent6751af0b0c1b952fede40b19b71da8025b5d8bcf (diff)
downloadydb-2598ef1d0aee359b4b6d5fdd1758916d5907d04f.tar.gz
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/llvm12/include/llvm/MC/MCParser/MCAsmParser.h')
-rw-r--r--contrib/libs/llvm12/include/llvm/MC/MCParser/MCAsmParser.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/contrib/libs/llvm12/include/llvm/MC/MCParser/MCAsmParser.h b/contrib/libs/llvm12/include/llvm/MC/MCParser/MCAsmParser.h
index d8e1a5c9fa..2447aa9151 100644
--- a/contrib/libs/llvm12/include/llvm/MC/MCParser/MCAsmParser.h
+++ b/contrib/libs/llvm12/include/llvm/MC/MCParser/MCAsmParser.h
@@ -97,20 +97,20 @@ private:
IdKind Kind;
};
-// Generic type information for an assembly object.
-// All sizes measured in bytes.
-struct AsmTypeInfo {
- StringRef Name;
- unsigned Size = 0;
- unsigned ElementSize = 0;
- unsigned Length = 0;
-};
-
-struct AsmFieldInfo {
- AsmTypeInfo Type;
- unsigned Offset = 0;
-};
-
+// Generic type information for an assembly object.
+// All sizes measured in bytes.
+struct AsmTypeInfo {
+ StringRef Name;
+ unsigned Size = 0;
+ unsigned ElementSize = 0;
+ unsigned Length = 0;
+};
+
+struct AsmFieldInfo {
+ AsmTypeInfo Type;
+ unsigned Offset = 0;
+};
+
/// Generic Sema callback for assembly parser.
class MCAsmParserSemaCallback {
public:
@@ -191,20 +191,20 @@ public:
virtual bool isParsingMasm() const { return false; }
- virtual bool defineMacro(StringRef Name, StringRef Value) { return true; }
-
- virtual bool lookUpField(StringRef Name, AsmFieldInfo &Info) const {
- return true;
- }
- virtual bool lookUpField(StringRef Base, StringRef Member,
- AsmFieldInfo &Info) const {
+ virtual bool defineMacro(StringRef Name, StringRef Value) { return true; }
+
+ virtual bool lookUpField(StringRef Name, AsmFieldInfo &Info) const {
return true;
}
-
- virtual bool lookUpType(StringRef Name, AsmTypeInfo &Info) const {
+ virtual bool lookUpField(StringRef Base, StringRef Member,
+ AsmFieldInfo &Info) const {
return true;
}
+ virtual bool lookUpType(StringRef Name, AsmTypeInfo &Info) const {
+ return true;
+ }
+
/// Parse MS-style inline assembly.
virtual bool parseMSInlineAsm(
void *AsmLoc, std::string &AsmString, unsigned &NumOutputs,
@@ -307,8 +307,8 @@ public:
/// \param Res - The value of the expression. The result is undefined
/// on error.
/// \return - False on success.
- virtual bool parsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc,
- AsmTypeInfo *TypeInfo) = 0;
+ virtual bool parsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc,
+ AsmTypeInfo *TypeInfo) = 0;
/// Parse an arbitrary expression, assuming that an initial '(' has
/// already been consumed.