diff options
author | Victor Hernandez <vhernandez@apple.com> | 2010-01-05 22:22:14 +0000 |
---|---|---|
committer | Victor Hernandez <vhernandez@apple.com> | 2010-01-05 22:22:14 +0000 |
commit | bf454d2cc21e47632bda51a6b7b01b466015c519 (patch) | |
tree | abeb38e93face65578a32e67a86a335427484564 /lib/AsmParser/LLParser.h | |
parent | c867e729d7bfaae5447a31852893423484a00dda (diff) | |
download | external_llvm-bf454d2cc21e47632bda51a6b7b01b466015c519.zip external_llvm-bf454d2cc21e47632bda51a6b7b01b466015c519.tar.gz external_llvm-bf454d2cc21e47632bda51a6b7b01b466015c519.tar.bz2 |
Re-add parsing of function-local metadata; this time with testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92793 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/LLParser.h')
-rw-r--r-- | lib/AsmParser/LLParser.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/lib/AsmParser/LLParser.h b/lib/AsmParser/LLParser.h index 803832f..595267b 100644 --- a/lib/AsmParser/LLParser.h +++ b/lib/AsmParser/LLParser.h @@ -216,17 +216,6 @@ namespace llvm { bool ParseFunctionType(PATypeHolder &Result); PATypeHolder HandleUpRefs(const Type *Ty); - // Constants. - bool ParseValID(ValID &ID); - bool ConvertGlobalValIDToValue(const Type *Ty, ValID &ID, Constant *&V); - bool ConvertGlobalOrMetadataValIDToValue(const Type *Ty, ValID &ID, - Value *&V); - bool ParseGlobalValue(const Type *Ty, Constant *&V); - bool ParseGlobalTypeAndValue(Constant *&V); - bool ParseGlobalValueVector(SmallVectorImpl<Constant*> &Elts); - bool ParseMDNodeVector(SmallVectorImpl<Value*> &); - - // Function Semantic Analysis. class PerFunctionState { LLParser &P; @@ -301,6 +290,16 @@ namespace llvm { bool ParseParameterList(SmallVectorImpl<ParamInfo> &ArgList, PerFunctionState &PFS); + // Constant Parsing. + bool ParseValID(ValID &ID, PerFunctionState *PFS = NULL); + bool ConvertGlobalValIDToValue(const Type *Ty, ValID &ID, Constant *&V); + bool ConvertGlobalOrMetadataValIDToValue(const Type *Ty, ValID &ID, + Value *&V, PerFunctionState *PFS); + bool ParseGlobalValue(const Type *Ty, Constant *&V); + bool ParseGlobalTypeAndValue(Constant *&V); + bool ParseGlobalValueVector(SmallVectorImpl<Constant*> &Elts); + bool ParseMDNodeVector(SmallVectorImpl<Value*> &, PerFunctionState *PFS); + // Function Parsing. struct ArgInfo { LocTy Loc; |