summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
diff options
context:
space:
mode:
authorHao Liu <Hao.Liu@arm.com>2013-11-22 08:17:16 +0000
committerHao Liu <Hao.Liu@arm.com>2013-11-22 08:17:16 +0000
commitb75d80fdf08bd0a7bf119d8f35a8060662478591 (patch)
treef407554d83d7708f643fc6ef41ba154ecdd70472 /llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
parent9ba7536e4540d2116637b23f3d6ba3362a4a1918 (diff)
downloadbcm5719-llvm-b75d80fdf08bd0a7bf119d8f35a8060662478591.tar.gz
bcm5719-llvm-b75d80fdf08bd0a7bf119d8f35a8060662478591.zip
Fix a Cygwin build failure caused by enum values starting with '_', which is conflicted with some platform macros.
This solution only renames variables, no functional change. NOTE: This is a candidate for the 3.4 branch. llvm-svn: 195421
Diffstat (limited to 'llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp')
-rw-r--r--llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
index 1e0033c164e..fbbce116ad8 100644
--- a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+++ b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
@@ -2066,7 +2066,7 @@ AArch64AsmParser::OperandMatchResultTy AArch64AsmParser::ParseVectorList(
A64Layout::VectorLayout Layout = A64StringToVectorLayout(LayoutStr);
if (Count > 1) { // If count > 1, create vector list using super register.
- bool IsVec64 = (Layout < A64Layout::_16B);
+ bool IsVec64 = (Layout < A64Layout::VL_16B);
static unsigned SupRegIDs[3][2] = {
{ AArch64::QPairRegClassID, AArch64::DPairRegClassID },
{ AArch64::QTripleRegClassID, AArch64::DTripleRegClassID },
@@ -2084,10 +2084,10 @@ AArch64AsmParser::OperandMatchResultTy AArch64AsmParser::ParseVectorList(
if (Parser.getTok().is(AsmToken::LBrac)) {
uint32_t NumLanes = 0;
switch(Layout) {
- case A64Layout::_B : NumLanes = 16; break;
- case A64Layout::_H : NumLanes = 8; break;
- case A64Layout::_S : NumLanes = 4; break;
- case A64Layout::_D : NumLanes = 2; break;
+ case A64Layout::VL_B : NumLanes = 16; break;
+ case A64Layout::VL_H : NumLanes = 8; break;
+ case A64Layout::VL_S : NumLanes = 4; break;
+ case A64Layout::VL_D : NumLanes = 2; break;
default:
SMLoc Loc = getLexer().getLoc();
Error(Loc, "expected comma before next operand");
OpenPOWER on IntegriCloud