llvm.org GIT mirror llvm / 06744bb
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 Alp Toker 6 years ago
1 changed file(s) with 16 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
2929 class SourceMgr;
3030 class Twine;
3131
32 class InlineAsmIdentifierInfo {
33 public:
34 void *OpDecl;
35 bool IsVarDecl;
36 unsigned Length, Size, Type;
37
38 void clear() {
39 OpDecl = nullptr;
40 IsVarDecl = false;
41 Length = 1;
42 Size = 0;
43 Type = 0;
44 }
45 };
46
3247 /// MCAsmParserSemaCallback - Generic Sema callback for assembly parser.
3348 class MCAsmParserSemaCallback {
3449 public:
35 typedef struct {
36 void *OpDecl;
37 bool IsVarDecl;
38 unsigned Length, Size, Type;
39
40 void clear() {
41 OpDecl = nullptr;
42 IsVarDecl = false;
43 Length = 1;
44 Size = 0;
45 Type = 0;
46 }
47 } InlineAsmIdentifierInfo;
50 typedef llvm::InlineAsmIdentifierInfo InlineAsmIdentifierInfo;
4851
4952 virtual ~MCAsmParserSemaCallback();
5053 virtual void *LookupInlineAsmIdentifier(StringRef &LineBuf,
5457 virtual bool LookupInlineAsmField(StringRef Base, StringRef Member,
5558 unsigned &Offset) = 0;
5659 };
57
58 typedef MCAsmParserSemaCallback::InlineAsmIdentifierInfo
59 InlineAsmIdentifierInfo;
6060
6161 /// MCAsmParser - Generic assembler parser interface, for use by target specific
6262 /// assembly parsers.