mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
Add a predicate to determine if a call is an inline asm statement.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110488 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
565aafc997
commit
6f615f8d48
@ -1052,6 +1052,11 @@ public:
|
||||
void setCalledFunction(Value* Fn) {
|
||||
Op<-1>() = Fn;
|
||||
}
|
||||
|
||||
/// isInlineAsm - Check if this call is an inline asm statement.
|
||||
bool isInlineAsm() const {
|
||||
return isa<InlineAsm>(Op<-1>());
|
||||
}
|
||||
|
||||
// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||
static inline bool classof(const CallInst *) { return true; }
|
||||
|
Loading…
Reference in New Issue
Block a user