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:
Alp Toker
2014-06-08 05:07:38 +00:00
parent ea3ab85c01
commit 06744bb19e

View File

@@ -30,10 +30,8 @@ class SMRange;
class SourceMgr; class SourceMgr;
class Twine; class Twine;
/// MCAsmParserSemaCallback - Generic Sema callback for assembly parser. class InlineAsmIdentifierInfo {
class MCAsmParserSemaCallback {
public: public:
typedef struct {
void *OpDecl; void *OpDecl;
bool IsVarDecl; bool IsVarDecl;
unsigned Length, Size, Type; unsigned Length, Size, Type;
@@ -45,7 +43,12 @@ public:
Size = 0; Size = 0;
Type = 0; Type = 0;
} }
} InlineAsmIdentifierInfo; };
/// MCAsmParserSemaCallback - Generic Sema callback for assembly parser.
class MCAsmParserSemaCallback {
public:
typedef llvm::InlineAsmIdentifierInfo 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 {