Added a trivial function to modify the flags field of MCSymbolData class. The functio...
authorNathan Jeffords <blunted2night@gmail.com>
Wed, 12 May 2010 00:52:54 +0000 (00:52 +0000)
committerNathan Jeffords <blunted2night@gmail.com>
Wed, 12 May 2010 00:52:54 +0000 (00:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103534 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCAssembler.h

index 11b1bfcb2009affe95e0766454483e5ebef65a1a..08500f8d7aa693956bb3d9d66d4b4aaf570662d2 100644 (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; }