summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/ParserInternals.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-09-28 23:35:22 +0000
committerChris Lattner <sabre@nondot.org>2006-09-28 23:35:22 +0000
commit6ab03f6a08d34889d694e1f43f99ba9b8328dcee (patch)
tree9d649e009e973007ffc1dcdd43c173bd96b38359 /llvm/lib/AsmParser/ParserInternals.h
parent7843066e15c526b9d4e1364a3a344b9f6fa678e0 (diff)
downloadbcm5719-llvm-6ab03f6a08d34889d694e1f43f99ba9b8328dcee.tar.gz
bcm5719-llvm-6ab03f6a08d34889d694e1f43f99ba9b8328dcee.zip
Eliminate ConstantBool::True and ConstantBool::False. Instead, provide
ConstantBool::getTrue() and ConstantBool::getFalse(). llvm-svn: 30665
Diffstat (limited to 'llvm/lib/AsmParser/ParserInternals.h')
-rw-r--r--llvm/lib/AsmParser/ParserInternals.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/AsmParser/ParserInternals.h b/llvm/lib/AsmParser/ParserInternals.h
index 633ffc13485..79e367fe1fe 100644
--- a/llvm/lib/AsmParser/ParserInternals.h
+++ b/llvm/lib/AsmParser/ParserInternals.h
@@ -172,8 +172,8 @@ struct ValID {
case ConstUIntVal :
case ConstSIntVal : return std::string("%") + itostr(ConstPool64);
case ConstantVal:
- if (ConstantValue == ConstantBool::True) return "true";
- if (ConstantValue == ConstantBool::False) return "false";
+ if (ConstantValue == ConstantBool::getTrue()) return "true";
+ if (ConstantValue == ConstantBool::getFalse()) return "false";
return "<constant expression>";
default:
assert(0 && "Unknown value!");
OpenPOWER on IntegriCloud