[llvm-commits] [llvm] r103534 - /llvm/trunk/include/llvm/MC/MCAssembler.h
Nathan Jeffords
blunted2night at gmail.com
Tue May 11 17:52:54 PDT 2010
Author: njeffords
Date: Tue May 11 19:52:54 2010
New Revision: 103534
URL: http://llvm.org/viewvc/llvm-project?rev=103534&view=rev
Log:
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.
Modified:
llvm/trunk/include/llvm/MC/MCAssembler.h
Modified: llvm/trunk/include/llvm/MC/MCAssembler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCAssembler.h?rev=103534&r1=103533&r2=103534&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCAssembler.h (original)
+++ llvm/trunk/include/llvm/MC/MCAssembler.h Tue May 11 19:52:54 2010
@@ -571,6 +571,11 @@
/// 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; }
More information about the llvm-commits
mailing list