summaryrefslogtreecommitdiffstats
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
commitcf11886f1ed4731454b03e548034e3118c339a2b (patch)
treeeba14a526ff214259ca1aad33403f505b8b725a8
parent45f83ee87d892bbf2134347ac9dec0417a0d15c3 (diff)
downloadbcm5719-llvm-cf11886f1ed4731454b03e548034e3118c339a2b.tar.gz
bcm5719-llvm-cf11886f1ed4731454b03e548034e3118c339a2b.zip
Twine: Stores kinds as uchar instead of bitfield to be friendlier to the
optimizer. llvm-svn: 89278
-rw-r--r--llvm/include/llvm/ADT/Twine.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/ADT/Twine.h b/llvm/include/llvm/ADT/Twine.h
index f4722db6527..ca0be53d481 100644
--- a/llvm/include/llvm/ADT/Twine.h
+++ b/llvm/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;
OpenPOWER on IntegriCloud