Added a trivial function to modify the flags field of MCSymbolData class. The function takes the value and a mask, and clears the mask bits before applying the value.

llvm-svn: 103534
This commit is contained in:
Nathan Jeffords 2010-05-12 00:52:54 +00:00
parent 3c2d51a1b9
commit 1de839f1be
1 changed files with 5 additions and 0 deletions

View File

@ -571,6 +571,11 @@ public:
/// setFlags - Set the (implementation defined) symbol flags.
void setFlags(uint32_t Value) { Flags = Value; }
/// modifyFlags - Modify the flags via a mask
void modifyFlags(uint32_t Value, uint32_t Mask) {
Flags = (Flags & ~Mask) | Value;
}
/// getIndex - Get the (implementation defined) index.
uint64_t getIndex() const { return Index; }