mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +00:00
Make InlineAsmIdentifierInfo forward-declarable
This helps localize header inclusion in the frontend. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210417 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -30,22 +30,25 @@ class SMRange;
|
|||||||
class SourceMgr;
|
class SourceMgr;
|
||||||
class Twine;
|
class Twine;
|
||||||
|
|
||||||
|
class InlineAsmIdentifierInfo {
|
||||||
|
public:
|
||||||
|
void *OpDecl;
|
||||||
|
bool IsVarDecl;
|
||||||
|
unsigned Length, Size, Type;
|
||||||
|
|
||||||
|
void clear() {
|
||||||
|
OpDecl = nullptr;
|
||||||
|
IsVarDecl = false;
|
||||||
|
Length = 1;
|
||||||
|
Size = 0;
|
||||||
|
Type = 0;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
/// MCAsmParserSemaCallback - Generic Sema callback for assembly parser.
|
/// MCAsmParserSemaCallback - Generic Sema callback for assembly parser.
|
||||||
class MCAsmParserSemaCallback {
|
class MCAsmParserSemaCallback {
|
||||||
public:
|
public:
|
||||||
typedef struct {
|
typedef llvm::InlineAsmIdentifierInfo InlineAsmIdentifierInfo;
|
||||||
void *OpDecl;
|
|
||||||
bool IsVarDecl;
|
|
||||||
unsigned Length, Size, Type;
|
|
||||||
|
|
||||||
void clear() {
|
|
||||||
OpDecl = nullptr;
|
|
||||||
IsVarDecl = false;
|
|
||||||
Length = 1;
|
|
||||||
Size = 0;
|
|
||||||
Type = 0;
|
|
||||||
}
|
|
||||||
} InlineAsmIdentifierInfo;
|
|
||||||
|
|
||||||
virtual ~MCAsmParserSemaCallback();
|
virtual ~MCAsmParserSemaCallback();
|
||||||
virtual void *LookupInlineAsmIdentifier(StringRef &LineBuf,
|
virtual void *LookupInlineAsmIdentifier(StringRef &LineBuf,
|
||||||
@@ -56,9 +59,6 @@ public:
|
|||||||
unsigned &Offset) = 0;
|
unsigned &Offset) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef MCAsmParserSemaCallback::InlineAsmIdentifierInfo
|
|
||||||
InlineAsmIdentifierInfo;
|
|
||||||
|
|
||||||
/// MCAsmParser - Generic assembler parser interface, for use by target specific
|
/// MCAsmParser - Generic assembler parser interface, for use by target specific
|
||||||
/// assembly parsers.
|
/// assembly parsers.
|
||||||
class MCAsmParser {
|
class MCAsmParser {
|
||||||
|
Reference in New Issue
Block a user