diff options
| author | Abramo Bagnara <abramo.bagnara@gmail.com> | 2011-07-11 08:43:20 +0000 |
|---|---|---|
| committer | Abramo Bagnara <abramo.bagnara@gmail.com> | 2011-07-11 08:43:20 +0000 |
| commit | 612f6dc4e9a1bb268c10a7ab651e68e6d234015d (patch) | |
| tree | 467259314e3fb508b93467b2de2c6d1d18912771 /clang | |
| parent | 178360e1cd7ea8606f1b9673485f7d76dc3c458b (diff) | |
| download | bcm5719-llvm-612f6dc4e9a1bb268c10a7ab651e68e6d234015d.tar.gz bcm5719-llvm-612f6dc4e9a1bb268c10a7ab651e68e6d234015d.zip | |
Added removeBitWidth method.
llvm-svn: 134891
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/include/clang/AST/Decl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h index 143915b4b54..5691e99e729 100644 --- a/clang/include/clang/AST/Decl.h +++ b/clang/include/clang/AST/Decl.h @@ -2039,6 +2039,11 @@ public: InitializerOrBitWidth.setPointer(BW); InitializerOrBitWidth.setInt(1); } + /// removeBitWidth - Remove the bitfield width from this member. + void removeBitWidth() { + assert(isBitField() && "no bit width to remove"); + InitializerOrBitWidth.setPointer(0); + } /// hasInClassInitializer - Determine whether this member has a C++0x in-class /// initializer. |

