mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
[ms-inline asm] Add support for calling functions from inline assembly.
Part of rdar://12991541 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172121 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -36,7 +36,7 @@ class MCAsmParserSemaCallback {
|
||||
public:
|
||||
virtual ~MCAsmParserSemaCallback();
|
||||
virtual void *LookupInlineAsmIdentifier(StringRef Name, void *Loc,
|
||||
unsigned &Size) = 0;
|
||||
unsigned &Size, bool &IsVarDecl) = 0;
|
||||
virtual bool LookupInlineAsmField(StringRef Base, StringRef Member,
|
||||
unsigned &Offset) = 0;
|
||||
};
|
||||
|
@@ -70,6 +70,10 @@ public:
|
||||
/// care of the rewrites. Only valid when parsing MS-style inline assembly.
|
||||
virtual bool needAsmRewrite() const { return true; }
|
||||
|
||||
/// needAddressOf - Do we need to emit code to get the address of the
|
||||
/// variable/label? Only valid when parsing MS-style inline assembly.
|
||||
virtual bool needAddressOf() const { return false; }
|
||||
|
||||
/// isOffsetOf - Do we need to emit code to get the offset of the variable,
|
||||
/// rather then the value of the variable? Only valid when parsing MS-style
|
||||
/// inline assembly.
|
||||
|
Reference in New Issue
Block a user