aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/Twine.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-19 00:04:43 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-19 00:04:43 +0000
commitb80077aae9fe51af78e6e25e26d09bf8efcd8244 (patch)
tree47a8769783c275776c808c517a2a689e91e7d185 /include/llvm/ADT/Twine.h
parentfbb6b67df086fa5ed54e2ff27c15e4c087883957 (diff)
downloadexternal_llvm-b80077aae9fe51af78e6e25e26d09bf8efcd8244.zip
external_llvm-b80077aae9fe51af78e6e25e26d09bf8efcd8244.tar.gz
external_llvm-b80077aae9fe51af78e6e25e26d09bf8efcd8244.tar.bz2
Twine: Stores kinds as uchar instead of bitfield to be friendlier to the
optimizer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89278 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/Twine.h')
-rw-r--r--include/llvm/ADT/Twine.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/ADT/Twine.h b/include/llvm/ADT/Twine.h
index f4722db..ca0be53 100644
--- a/include/llvm/ADT/Twine.h
+++ b/include/llvm/ADT/Twine.h
@@ -133,9 +133,9 @@ namespace llvm {
/// Null or Empty kinds.
const void *RHS;
/// LHSKind - The NodeKind of the left hand side, \see getLHSKind().
- NodeKind LHSKind : 8;
+ unsigned char LHSKind;
/// RHSKind - The NodeKind of the left hand side, \see getLHSKind().
- NodeKind RHSKind : 8;
+ unsigned char RHSKind;
private:
/// Construct a nullary twine; the kind must be NullKind or EmptyKind.
@@ -209,10 +209,10 @@ namespace llvm {
}
/// getLHSKind - Get the NodeKind of the left-hand side.
- NodeKind getLHSKind() const { return LHSKind; }
+ NodeKind getLHSKind() const { return (NodeKind) LHSKind; }
/// getRHSKind - Get the NodeKind of the left-hand side.
- NodeKind getRHSKind() const { return RHSKind; }
+ NodeKind getRHSKind() const { return (NodeKind) RHSKind; }
/// printOneChild - Print one child from a twine.
void printOneChild(raw_ostream &OS, const void *Ptr, NodeKind Kind) const;