summaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCParser
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-04-22 17:01:46 +0000
committerChad Rosier <mcrosier@apple.com>2013-04-22 17:01:46 +0000
commit44021515d76ec9b529f2adbc252552869b1357d5 (patch)
tree547ca4881368dfb0fb232caba414f0e94150f7ae /include/llvm/MC/MCParser
parenta626be362b35fcb9269019d4f9cb25aaf9ddeb14 (diff)
downloadllvm-44021515d76ec9b529f2adbc252552869b1357d5.tar.gz
llvm-44021515d76ec9b529f2adbc252552869b1357d5.tar.bz2
llvm-44021515d76ec9b529f2adbc252552869b1357d5.tar.xz
[ms-inline asm] Refactor/clean up the SemaLookup interface. No functional
change indended. Part of rdar://13663589 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180028 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCParser')
-rw-r--r--include/llvm/MC/MCParser/MCAsmParser.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/include/llvm/MC/MCParser/MCAsmParser.h b/include/llvm/MC/MCParser/MCAsmParser.h
index 601f8f7734..0b817727f0 100644
--- a/include/llvm/MC/MCParser/MCAsmParser.h
+++ b/include/llvm/MC/MCParser/MCAsmParser.h
@@ -33,10 +33,21 @@ class Twine;
/// MCAsmParserSemaCallback - Generic Sema callback for assembly parser.
class MCAsmParserSemaCallback {
public:
+ typedef struct {
+ bool IsVarDecl;
+ unsigned Length, Size, Type;
+
+ void clear() {
+ IsVarDecl = false;
+ Length = 1;
+ Size = 0;
+ Type = 0;
+ }
+ } InlineAsmIdentifierInfo;
+
virtual ~MCAsmParserSemaCallback();
- virtual void *LookupInlineAsmIdentifier(StringRef Name, void *Loc,
- unsigned &Length, unsigned &Size,
- unsigned &Type, bool &IsVarDecl) = 0;
+ virtual void *LookupInlineAsmIdentifier(StringRef &LineBuf,
+ InlineAsmIdentifierInfo &Info) = 0;
virtual bool LookupInlineAsmField(StringRef Base, StringRef Member,
unsigned &Offset) = 0;