summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLParser.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-02 08:05:26 +0000
committerChris Lattner <sabre@nondot.org>2009-01-02 08:05:26 +0000
commit3822f63b88ab44c45996c2451a45ec72eec0d67f (patch)
treea3fb5a9d39860197f021a1a340cde93447b509a7 /llvm/lib/AsmParser/LLParser.h
parent2346a9eb99caa9c7f7e2c2e4a723da1ea36e13fc (diff)
downloadbcm5719-llvm-3822f63b88ab44c45996c2451a45ec72eec0d67f.tar.gz
bcm5719-llvm-3822f63b88ab44c45996c2451a45ec72eec0d67f.zip
minor cleanups and comment improvements.
llvm-svn: 61564
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.h')
-rw-r--r--llvm/lib/AsmParser/LLParser.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/llvm/lib/AsmParser/LLParser.h b/llvm/lib/AsmParser/LLParser.h
index 1ea19793795..d6cb197e978 100644
--- a/llvm/lib/AsmParser/LLParser.h
+++ b/llvm/lib/AsmParser/LLParser.h
@@ -89,6 +89,11 @@ namespace llvm {
// Helper Routines.
bool ParseToken(lltok::Kind T, const char *ErrMsg);
+ bool EatIfPresent(lltok::Kind T) {
+ if (Lex.getKind() != T) return false;
+ Lex.Lex();
+ return true;
+ }
bool ParseOptionalToken(lltok::Kind T, bool &Present) {
if (Lex.getKind() != T) {
Present = false;
@@ -98,10 +103,11 @@ namespace llvm {
}
return false;
}
- bool ParseUnsigned(unsigned &Val);
- bool ParseUnsigned(unsigned &Val, LocTy &Loc) {
+ bool ParseStringConstant(std::string &Result);
+ bool ParseUInt32(unsigned &Val);
+ bool ParseUInt32(unsigned &Val, LocTy &Loc) {
Loc = Lex.getLoc();
- return ParseUnsigned(Val);
+ return ParseUInt32(Val);
}
bool ParseOptionalAddrSpace(unsigned &AddrSpace);
bool ParseOptionalAttrs(unsigned &Attrs, unsigned AttrKind);
OpenPOWER on IntegriCloud