diff options
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h b/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h index ea5cbc40ba3..7d6d45e64d6 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h @@ -211,6 +211,8 @@ public: /// Emit an unsigned constant. void addUnsignedConstant(const APInt &Value); + bool isMemoryLocation() const { return LocationKind == Memory; } + /// Lock this down to become a memory location description. void setMemoryLocationKind() { assert(LocationKind == Unknown); |

