diff options
Diffstat (limited to 'llvm/include/llvm/MC/MCAssembler.h')
| -rw-r--r-- | llvm/include/llvm/MC/MCAssembler.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/include/llvm/MC/MCAssembler.h b/llvm/include/llvm/MC/MCAssembler.h index d4a8efe01d4..bcd678deaa3 100644 --- a/llvm/include/llvm/MC/MCAssembler.h +++ b/llvm/include/llvm/MC/MCAssembler.h @@ -312,6 +312,10 @@ public: /// Offset - The offset to apply to the fragment address to form this symbol's /// value. uint64_t Offset; + + /// IsExternal - True if this symbol is visible outside this translation + /// unit. + unsigned IsExternal : 1; public: // Only for use as sentinel. @@ -330,6 +334,13 @@ public: uint64_t getOffset() const { return Offset; } void setOffset(uint64_t Value) { Offset = Value; } + /// @} + /// @name Symbol Attributes + /// @{ + + bool isExternal() const { return IsExternal; } + void setExternal(bool Value) { IsExternal = Value; } + /// @} }; |

