forked from OSchip/llvm-project
Make InlineAsmIdentifierInfo forward-declarable
This helps localize header inclusion in the frontend. llvm-svn: 210417
This commit is contained in:
parent
c986fcc9aa
commit
f945e7b672
|
@ -30,22 +30,25 @@ class SMRange;
|
|||
class SourceMgr;
|
||||
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.
|
||||
class MCAsmParserSemaCallback {
|
||||
public:
|
||||
typedef struct {
|
||||
void *OpDecl;
|
||||
bool IsVarDecl;
|
||||
unsigned Length, Size, Type;
|
||||
|
||||
void clear() {
|
||||
OpDecl = nullptr;
|
||||
IsVarDecl = false;
|
||||
Length = 1;
|
||||
Size = 0;
|
||||
Type = 0;
|
||||
}
|
||||
} InlineAsmIdentifierInfo;
|
||||
typedef llvm::InlineAsmIdentifierInfo InlineAsmIdentifierInfo;
|
||||
|
||||
virtual ~MCAsmParserSemaCallback();
|
||||
virtual void *LookupInlineAsmIdentifier(StringRef &LineBuf,
|
||||
|
@ -56,9 +59,6 @@ public:
|
|||
unsigned &Offset) = 0;
|
||||
};
|
||||
|
||||
typedef MCAsmParserSemaCallback::InlineAsmIdentifierInfo
|
||||
InlineAsmIdentifierInfo;
|
||||
|
||||
/// MCAsmParser - Generic assembler parser interface, for use by target specific
|
||||
/// assembly parsers.
|
||||
class MCAsmParser {
|
||||
|
|
Loading…
Reference in New Issue